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
600
Sys.ScriptLoadFailedException Inaccessible Path
posted

Hi

We have a problem when inserting some ultrawebeditor into an UpdatePanel, and we tried to hide/show it throw AJAX server side event.

Example:

        <asp:UpdatePanel ID="UpdatePanel1" runat="server">

            <ContentTemplate>

                <asp:Panel ID="Panel1" runat="server" Visible="False">

                    <igtxt:WebPercentEdit ID="WebPercentEdit1" runat="server">

                    </igtxt:WebPercentEdit>

                </asp:Panel>

                <asp:Label ID="Label1" runat="server" Text="This is a label!"></asp:Label>

                <asp:Button ID="Button1" runat="server" Text="Click Me" OnClick="Button1_Click" />

            </ContentTemplate>

        </asp:UpdatePanel>

C# code:

protected void Button1_Click(object sender, EventArgs e)

        {

            Label1.Text = "hi" + DateTime.Now.ToString();

            this.Panel1.Visible = true;

        }

At this point client side generate the exception:

Error: Sys.ScriptLoadFailedException: The script ‘if_res/js/ig_shared.js'...

If "Panel1" is visible = true, this behavior does not occurred.

Thank's

Jaimir G.