sys.WebForms is undefined

3 posts, 0 answers
  1. Vinayak Chitre
    Vinayak Chitre avatar
    11 posts
    Member since:
    Sep 2009

    Posted 07 Oct 2009 Link to this post

    Hi,

    The erra of issues are not just ending for me.

    I am trying to use RadWindow control for modal popup in my application. I have encountered one javascript error while page load.

    sys.WebForms is undefined

    sys.WebForms is undefined -&nbsp;<BR>Error: Sys.WebForms is undefined<BR>Source   
    File: <A   
    href="http://nfgprimary4/NPO/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_HiddenField&amp;compress=1&amp;_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a3bbfe379-348b-450d-86a7-bb22e53c1978%3aea597d4b%3bTelerik.Web.UI%3aen-US%3a18aed5cb-2fcd-4178-ac4d-382193252b8a%3a16e4e7cd%3af7645509%3aed16cbdc%3a874f8ea2%3a24ee1bba%3a19620875%3a33108d14%3abd8f85e4">http://nfgprimary4/NPO/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_HiddenField&amp;compress=1&amp;_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a3bbfe379-348b-450d-86a7-bb22e53c1978%3aea597d4b%3bTelerik.Web.UI%3aen-US%3a18aed5cb-2fcd-4178-ac4d-382193252b8a%3a16e4e7cd%3af7645509%3aed16cbdc%3a874f8ea2%3a24ee1bba%3a19620875%3a33108d14%3abd8f85e4</A><BR>Line:   
    965 

    If I use the same code under web application its working fine. But I am hosting my application as WebSite.

    Please give me some input asap as I am completely stuck on this.

    Regards,
    Vinayak
  2. Vinayak Chitre
    Vinayak Chitre avatar
    11 posts
    Member since:
    Sep 2009

    Posted 07 Oct 2009 Link to this post

     I have resolved this issue by removing

    <xhtmlConformance mode="Legacy"/>

    from web.config file.

    this stops the AJAX extensions including the javascript
    files needed for AJAX. The bad thing is that you don't see any error
    messages when constructing your page but it just doesn't work as expected.

    ref: http://www.databaseforum.info/8/21/782a9744297d32ad.html

    If possible please move this thread to your forum. So others can also take a benifit.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Joshua
    Joshua avatar
    3 posts
    Member since:
    Jun 2011

    Posted 02 Jul 2012 Link to this post

    Here's a solution to this error if you're receiving it only on the iPad in full-screen mode.

     

    The problem turned out to be related to a header the iPad was sending to ASP.Net.  I've outlined the solution here: http://joshmouch.wordpress.com/2012/07/02/sys-webforms-is-undefined-on-ipad/ 
      

    Basically, you just have to tell ASP.Net that the iPad in full screen mode supports ajax.

    protected override void OnPreInit(EventArgs e)
    {
        if (Request.UserAgent != null && Request.UserAgent.IndexOf("AppleWebKit", StringComparison.CurrentCultureIgnoreCase) > -1)
        {
            this.ClientTarget = "uplevel";
        }
     
        base.OnPreInit(e);
    }
Back to Top