Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi ,I'm trying to use UpdatePanel in my page ,but after running my web apps ,I got this error in:

1 - Uncaught ReferenceError: Sys is not defined.
1 - Uncaught Error: ASP.NET Ajax Client-Side framework failed to load
2 - Uncaught SyntaxError:Unexpected token in ScriptResource.axd
I have tried many solutions on the web but still problem remain unsolved.
This is my web.config configuration:
XML
<httpHandlers>
      <remove verb="*" path="*.asmx"/>
      <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</httpHandlers>
<httpModules>
      <add name="AppEvents" type="AppEvents, App_code"/>
      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</httpModules>
Posted
Updated 6-May-13 18:54pm
v2
Comments
Sergey Alexandrovich Kryukov 7-May-13 0:59am    
The problematic code is not shown.
—SA
Alireza_1362 7-May-13 1:38am    
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">

<div>
<asp:UpdatePanel ID="myupanel" runat="server" UpdateMode="Conditional">
<contenttemplate>
<asp:Label runat="server" Text="Label" ID="lblD">
<asp:Button runat="server" Text="Button" ID="btnc" OnClick="btnclick" />


</div>
</form>
Alireza_1362 7-May-13 1:42am    
I think there is no error in my code ,I guess the problem should be something else
Sergey Alexandrovich Kryukov 7-May-13 1:44am    
Are you going to think that, or do you want do to development?
—SA
Alireza_1362 7-May-13 1:58am    
I mean ,when I run the web apps ,I trace it in firebug and in console section ,I saw mentioned problems and I don't know what exactly happen when Ajax request calls ,this is simple application that I wrote and there is no complicated code just the code that I put in response to you ,so I guess maybe there is another reason in background which I don't know. That's why I said I think ,Thanks.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900