This is a migrated thread and some comments may be shown as answers.

sys.WebForms is undefined

2 Answers 231 Views
ScriptManager and StyleSheetManager
This is a migrated thread and some comments may be shown as answers.
Vinayak Chitre
Top achievements
Rank 1
Vinayak Chitre asked on 07 Oct 2009, 12:04 PM

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 Answers, 1 is accepted

Sort by
0
Vinayak Chitre
Top achievements
Rank 1
answered on 07 Oct 2009, 03:01 PM
 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.
0
Joshua
Top achievements
Rank 1
answered on 02 Jul 2012, 03:48 PM

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);
}
Tags
ScriptManager and StyleSheetManager
Asked by
Vinayak Chitre
Top achievements
Rank 1
Answers by
Vinayak Chitre
Top achievements
Rank 1
Joshua
Top achievements
Rank 1
Share this question
or