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
115
Script taking too long warning
posted

I have a pretty simple (at least I thought) WebDialogWindow that is causing problems.  When the link button in the WebDialogWindow is clicked, a long time passes, then IE displays a message saying that a script is taking too long.  I know how to disable this message in IE, but that's not my problem.  If I take the dialog out of the UpdatePanel, everything works just fine.

 

{.aspx page}

<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/MasterPage.master" CodeBehind="test.aspx.vb" Inherits="ErgoWeb.test1"
    title="Untitled Page" %>

<%@ Register Assembly="Infragistics2.Web.v8.1, Version=8.1.20081.1000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
    Namespace="Infragistics.Web.UI.LayoutControls" TagPrefix="ig" %>

<%@ MasterType VirtualPath="~/MasterPage.master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="middle" Runat="Server">
    <asp:ScriptManager
        ID="ScriptManager1"
        runat="server" />
   
        <asp:UpdatePanel
            ID="test"
            runat="server"
            UpdateMode="conditional">
            <ContentTemplate>
                <asp:ImageButton
                    Text="Show Modal"
                    runat="server"
                    ID="showBtn"
                    OnClick="openModal"
                    ImageUrl="~/img/delete_icon.gif" />
                <ig:WebDialogWindow
                    ID="pgm" runat="server" Height="500px" Width="450px"
                    WindowState="Hidden"
                    Modal="true" ModalBackgroundCssClass="modalBackground">
                    <ContentPane CssClass="PriorityGrid">
                        <Template>
                         <asp:LinkButton
                             ID="lb0110"
                             CssClass="PriorityEasyHigh"
                             style="top:0px; left:360px;"
                             runat="server"
                             CommandArgument="110"
                             OnClick="setVal" />
                        </Template>
                    </ContentPane>
                </ig:WebDialogWindow>
            </ContentTemplate>
        </asp:UpdatePanel>
              
</asp:Content>

 

 

{.aspx.vb page}


    Public Sub OpenModal(ByVal sender As Object, ByVal e As ImageClickEventArgs)
        pgm.WindowState = DialogWindowState.Normal
        test.Update()
    End Sub

    Public Sub setVal(ByVal sender As Object, ByVal e As System.EventArgs)

        pgm.WindowState = DialogWindowState.Hidden
        test.Update()

    End Sub

 

 Any ideas?

Parents
No Data
Reply
  • 115
    posted

    Out of curiosity, I added the link button to the trigger collection of the panel and got this error:

     

    A control with ID 'lb0110' could not be found for the trigger in UpdatePanel 'test'.

     

    Could this have something to do with my issues?

Children
No Data