ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.[Solved] jQuery AJAX call asking for user Credentials in ASP.Net<p>Hi&nbsp;<a class="username" rel="HaxxBoxx">HaxxBoxx,</a></p> <p>In your App_Code folder, with in your <span style="text-decoration: underline;">RouteConfig.cs</span> comment out the following line or change its <span style="text-decoration: underline;">RedirectMode</span> to <span style="text-decoration: underline;">Off</span>.</p> <p><strong><span style="text-decoration: underline;">C#</span></strong></p> <pre class="brush: csharp">public static void RegisterRoutes(RouteCollection routes) { var settings = new FriendlyUrlSettings(); //settings.AutoRedirectMode = RedirectMode.Permanent; settings.AutoRedirectMode = RedirectMode.Off; routes.EnableFriendlyUrls(settings); }</pre> <p><span style="text-decoration: underline;"><strong>VB.Net</strong></span></p> <pre class="brush: vb">Public Shared Sub RegisterRoutes(ByVal routes As RouteCollection) Dim settings = New FriendlyUrlSettings() &#39;settings.AutoRedirectMode = RedirectMode.Permanent settings.AutoRedirectMode = RedirectMode.Off routes.EnableFriendlyUrls(settings) End Sub</pre> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/370108/Solved-jQuery-AJAX-call-asking-for-user-Credentials-in-ASPNet/https://www.aspforums.net:443/Threads/370108/Solved-jQuery-AJAX-call-asking-for-user-Credentials-in-ASPNet/Thu, 13 Dec 2018 03:46:21 GMT