Coolite & DotNetNuke

Page 1 of 2 12 LastLast
  1. #1

    Coolite & DotNetNuke

    Hi all!
    First I want to say a big CONGRATULATION to all Coolite Team! It's a great and awesome project! I love it!
    It's simple and easy to use!! WOW :D !!

    Second... :)

    I'm a DotNetNuke developer and if your Coolite can work with DNN I have in my mind a lot of project based on the combination of DNN & Coolite!!

    :P

    I'm going to test it with DNN!
    Stay tuned for my response!!

    Cheers,
    Davide Espertini
  2. #2

    RE: Coolite & DotNetNuke

    Hi Davide,

    I haven't tested the controls with DNN, but theoretically they should work.

    If you run into any issues, just let us know and we'll do our best to help out.

    Thanks for the feedback. Happy to hear you like the controls! It's only going to get better.
    Geoffrey McGill
    Founder
  3. #3

    RE: Coolite & DotNetNuke

    Mornig guys,

    I'm looking for Coolite Studio and DNN to cooperate but it seems to have error with postack.
    PS: Coolite Studio work in DNN!! That's great! Only a little fixes to be implemented to work perfectly I think..

    I'm going to explain the "error".
    I've added cool:window on my ascx file.
    By clicking on a link the window appear, but when I click on asp:button that I've included in content of my window no postback was generated.
    The same problem I have yesterday into aspx page, now solved with your new release.
    Well. Is there a property that I've to set? Or...??? Suggestion?
    I've tried with the TriggerEvent properties but nothing has changed..

    Many many many many Thanks
  4. #4

    RE: Coolite & DotNetNuke



    Hi Davide,

    I created a quick sample from your files and everything appears to work and postback as expected. One thing to note, adding a <asp:button> to the Window will cause a full old-school Page PostBack. Currently the Window will NOT perform an asyncronous postback. That functionality is being developed right now.

    Here's the code I was testing with.

    <%@ Page Language="C#" %>
    
    
    <%@ Register Assembly="Coolite.Web.UI" Namespace="Coolite.Web.UI" TagPrefix="cool" %>
    
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    
    <script runat="server">
        protected void yes_Click(object sender, EventArgs e)
        {
            this.lbltxt.Text = "YES was CLICKED!";
        }
    
    
        protected void no_Click(object sender, EventArgs e)
        {
            lbltxt.Text = "NO was CLICKED!";
        }
    
    
        protected void clear_Click(object sender, EventArgs e)
        {
            this.lbltxt.Text = "";
        }
    </script>
    
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Untitled Page</title>
    </head>
    <body>
        <form id="form1" runat="server">
            
                <cool:ScriptManager ID="ScriptManager1" runat="server" />
                <br />
                <asp:LinkButton runat="server" ID="testLink">TestLink</asp:LinkButton>
                <cool:Window 
                    runat="server" 
                    ID="myWin" 
                    Title="Test Win"
                    BodyStyle="padding: 6px;" 
                    CloseAction="Hide" 
                    Collapsible="False" 
                    Resizable="False" 
                    AnimateTarget="testLink" 
                    Modal="true" 
                    Center="true"
                    Width="150" 
                    Height="75" 
                    TriggerElement="testLink" 
                    TriggerEvent="Click">
                    <Content>
                        <center>
                            <asp:Label runat="server" ID="lbl1" Text="Vuoi eliminare il dato selezionato?"></asp:Label><br /><br />
                            <asp:Button ID="yes" runat="server" Text="Yes" &#111;nclick="yes_Click" />&amp;nbsp;&amp;nbsp;&amp;nbsp;
                            <asp:Button ID="no" runat="server" Text="&amp;nbsp;No&amp;nbsp;" &#111;nclick="no_Click" />&amp;nbsp;&amp;nbsp;&amp;nbsp;
                            <asp:Button ID="clear" runat="server" Text="Clear" &#111;nclick="clear_Click" />
                        </center>
                    </Content>
                </cool:Window>
                <cool:Panel Title="test_panel" runat="server" ID="tstPnl">
                    <Content>
                        <asp:Label runat="server" ID="lbltxt" Text=""></asp:Label>
                    </Content>
                </cool:Panel>
            
    
        </form>
    </body>
    </html>
    Geoffrey McGill
    Founder
  5. #5

    RE: Coolite & DotNetNuke

    Ok I understand, but this sample code work perfectly in an Asp.net pages/application, but not into a DNN web app.. :(

    I've been tried to do this in simple asp.net application and it's work perfectly.

    I'm waiting for the next release with asynchronous postback events. :P

    Please release shortly.. :D

    Davide
  6. #6

    RE: Coolite & DotNetNuke

    Into my DNN application the windows, panel and other controls appaers. But the window after a click not disappear.. :(

    I can close it only with his own close button...

    Bye
  7. #7

    RE: Coolite & DotNetNuke



    Does a JavaScript error get thrown? or does it just not work?

    Another thing that should help is to create a simple sample that does not work, view in a browser, view the generated source and then post the html for us to take a look at. Using the following FireFox plugin has an option which shows the generated source. The Generated Source is the html source which is generated after all the JavaScript runs.

    http://chrispederick.com/work/web-developer/

    Once installed, select View Source > View Generated Source.

    Geoffrey McGill
    Founder
  8. #8

    RE: Coolite & DotNetNuke



    Does the page postback after you click one of the buttons?


    Just make sure you do not have the AutoShow property set to true if you do not want the Window to appear.


    Hope this helps.
    Geoffrey McGill
    Founder
  9. #9

    RE: Coolite & DotNetNuke

    Nothing javascript error..
    Nothing postback generated....
    No AutoShow property set.

    I have set all the property of window in the codebehind file of my page.

    The Generated Source of my sample DNN app is attached at the bottom of the post
  10. #10

    RE: Coolite & DotNetNuke



    Ok, that helped located the problem.

    Looks like the Window html/DOM is being moved outside the <form>. I'm pretty sure this is happening because we're only applying the dom move work-around when the parent form is of type System.Web.UI.HtmlControls.HtmlForm. The <form> on your Page is a "multipart/form-data" type, which is a different type of control than the HtmlForm.

    I just have to figure out what type of control the form is. Can you run the following code on that Page and post the Type it returns?

    Response.Write(this.Page.Form.GetType().ToString());
    Geoffrey McGill
    Founder
Page 1 of 2 12 LastLast

Similar Threads

  1. Dotnetnuke and ext.net
    By yash.kapoor in forum 1.x Help
    Replies: 3
    Last Post: Dec 17, 2012, 4:56 AM
  2. Dotnetnuke - Controls Rendering Problem
    By sachin.munot in forum 1.x Help
    Replies: 1
    Last Post: Jul 19, 2012, 6:19 AM
  3. Ext.Net in Dotnetnuke Module
    By angusbeare in forum 1.x Help
    Replies: 1
    Last Post: Feb 19, 2012, 9:26 PM
  4. Controls disappearing with DotnetNuke
    By MikeWallaroo in forum 1.x Help
    Replies: 1
    Last Post: Oct 12, 2011, 4:29 PM
  5. Coolite & DotNetNuke
    By r_honey in forum Open Discussions
    Replies: 0
    Last Post: Jun 21, 2009, 5:17 AM

Posting Permissions