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

后端 未结 8 1103
北荒
北荒 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:13

    Commenting the following line in RouteConfig.cs works for me

     settings.AutoRedirectMode = RedirectMode.Permanent;
    

提交回复
热议问题