jQuery ajax calls not working with ASP.Net Web Forms when FriendlyUrls are added

后端 未结 3 1946
孤街浪徒
孤街浪徒 2021-01-05 13:49

The following code works just fine without FriendlyUrls turned on for an ASP.Net Web Forms project:



        
3条回答
  •  北荒
    北荒 (楼主)
    2021-01-05 13:53

    After spending way too much time on this, I found out that I needed to change this in App_Start/RouteConfig.cs:

    //settings.AutoRedirectMode = RedirectMode.Permanent;
    settings.AutoRedirectMode = RedirectMode.Off;
    

提交回复
热议问题