Home > DeveloperSection > Forums > Redirect to my login page instead of the default on c# asp.net
Tanuj Kumar

Total Post:134

Points:940
Posted on    December-22-2014 10:43 PM

 ASP.Net C# 
Ratings:


 1 Reply(s)
 464  View(s)
Rate this:

I am using visual web developer and I am creating my first site.

I set access rules for some pages, however, when I preview the site and I click on those pages instead od redirecting me on the Login page I created it redirects me to the default master page one.

How can I change this setting?



Ankita Pandey
Ankita Pandey

Total Post:183

Points:1285
Posted on    December-23-2014 5:24 AM

Please modify the below section in your web.config file:

<!-- Web.config file -->

<system.web>

   <authentication mode="Forms">

      <forms forms="401kApp" loginUrl="/login.aspx" />

   </authentication>

</system.web>


Don't want to miss updates? Please click the below button!

Follow MindStick