Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
330
Webdiloagwindow
posted
Hi, I've put the AJAX UpdatePanel inside WebDiloagWindow. Used UpdatePanel to eliminate postbacks. But if I used WebDialogWindow with updatepanel then page is not working and getting Javascript errors. Is WebDialogWindow is compatible with Update Panel? Thanks
  • 12679
    posted

    Hi,

    Let me know if you have any questions.

    Thanks

  • 12679
    Suggested Answer
    posted

    Hello kotapati,

    Yes WebDialogWindow is compatible with UpdatePanel control. You could try the following:

    Aspx page;

    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <ig:WebDialogWindow ID="WebDialogWindow1" runat="server" Height="300px" Width="400px">
        <ContentPane>
            <Template>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />
                    <asp:Label ID="Label1" runat="server" Text=""></asp:Label>
                </ContentTemplate> 
                </asp:UpdatePanel>
            </Template>
        </ContentPane>
    </ig:WebDialogWindow>

    Code behind:

     protected void Button1_Click(object sender, EventArgs e)
        {
            this.Label1.Text = DateTime.Now.ToString();
        }
    }

    All goes well.

    If you still have any issues please provide a sample demonstrating them.