REDIRECT TO MY LOGIN PAGE INSTEAD OF THE DEFAULT ON C# ASP.NET

Tanuj Kumar

Total Post:134

Points:940
Posted by  Tanuj Kumar
C# 
 1135  View(s)
Ratings:
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?

  1. Ankita Pandey

    Post:183

    Points:1285
    Re: Redirect to my login page instead of the default on c# asp.net

    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>

      Modified On Apr-07-2018 05:38:10 AM

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!