Call ASP.NET PageMethod/WebMethod with jQuery - returns whole page

后端 未结 8 1055
北荒
北荒 2020-11-27 02:57

jQuery 1.3.2, ASP.NET 2.0. Making an AJAX call to a PageMethod (WebMethod) returns the full/whole page instead of just the response. A breakpoint on the page method shows

相关标签:
8条回答
  • 2020-11-27 03:30

    After almost two hours and after had tried everything i finally solved it.@Marvin Zumbado's comment helped me.I was missing the .aspx from my url.I know this is not my best moment as a programmer!

    0 讨论(0)
  • 2020-11-27 03:32

    I was missing one line from my web.config:

    <system.web>
      <httpModules>
        <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
      </httpModules>
    </system.web>
    
    0 讨论(0)
提交回复
热议问题