Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET Ajax
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:
<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 6-May-13 19:53pm
Edited 6-May-13 19:54pm
v2
Comments
Sergey Alexandrovich Kryukov at 7-May-13 0:59am
   
The problematic code is not shown.
—SA
Alireza_1362 at 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">

<asp:Label runat="server" Text="Label" ID="lblD">
<asp:Button runat="server" Text="Button" ID="btnc" OnClick="btnclick" />


</div>
</form>
Alireza_1362 at 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 at 7-May-13 1:44am
   
Are you going to think that, or do you want do to development?
—SA
Alireza_1362 at 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
0 OriginalGriff 587
1 Sergey Alexandrovich Kryukov 479
2 Maciej Los 305
3 Mathew Soji 195
4 Richard MacCutchan 145
0 OriginalGriff 7,356
1 Sergey Alexandrovich Kryukov 6,712
2 DamithSL 5,461
3 Manas Bhardwaj 4,916
4 Maciej Los 4,475


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 7 May 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100