Disable auto Friendly URLs in a Web Form project
You could also just set the AutoRedirect mode to Off. This kinda gives you the best of both worlds.
public static class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
var settings = new FriendlyUrlSettings();
settings.AutoRedirectMode = RedirectMode.Off;
routes.EnableFriendlyUrls(settings);
}
}
In your solution, open RouteConfig.cs (in the App_Start directory) and comment out or remove this line
routes.EnableFriendlyUrls();
After uninstalling the NUGET package and deleting all the dll you must clear the browser cache