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.

Parents
No Data
Reply
  • 24497
    posted

    Hi Jaimir,

    I tested those codes with a page located in FileSystem website and it worked without problems. I tested various latest and old versions of CLR2.0 and CLR3.5 dlls in VisualStudio 2005 and 2008. The only problem with javascript which I found were in versions built before 7.1. If that is what you use, then I suggest you to update NetAdvantage with newer version. If you have recent version, then probably configuration of my test project was different from yours. I suggest you to submit a bug report with a sample project: http://es.infragistics.com/support/ask-for-help.aspx

Children