Login User Control

Results 1 to 2 of 2

Thread: Login User Control

  1. #1
    Join Date
    Dec 1969

    Default Login User Control

    I created a user control called "Log.ascx" and registered it in my login page called "MainPage.aspx".<BR><BR>In my control I included an hyperlink to the "Registration.aspx" page that new user could call to fill up to register in the site.<BR><BR>When I click on this link I am I not redirected to the "Registration.aspx" page, because the RedirectFromLoginPage method keeps me on my "MainPage.aspx". I am only redirected to the desired page if I enter valid credentials, which a new user obviously could not provide.<BR><BR>How can I solve this issue? Thanks for helping.<BR><BR>Pascal

  2. #2
    Join Date
    Dec 1969

    Default RE: Login User Control

    If you are using forms authentication for ASP.NET application as a whole, you can set the authentication mode only in WEB.CONFIG file. <BR><BR>Saying this, you don&#039;t have to force password protect everypage, just the directories you want. So, set a directory in Web.config file that you want to let annoumous users to have access to.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts