Results 1 to 4 of 4

Thread: Login Page for ASP.NET web application

  1. #1
    Join Date
    Feb 2009
    Posts
    8

    Login Page for ASP.NET web application

    Hi,
    I want to first create a simple & basic webpage with login username & password.

    Then I will be further validate it with more details can anyone help me with this?

    Regards,

  2. #2
    Join Date
    May 2008
    Posts
    2,012

    Re: Login Page for ASP.NET web application

    You can create a login page by using the ASP.NET Login control. The control consists of text boxes, a check box and a button control. The text boxes collect username and password information from the user. The check box is used to remember the user's credentials and the button is used to submit the information the user provides. The login control simplifies creating login pages for form authentication. This login control takes a user name and password and uses ASP.NET membership and forms authentication to verify the user's credentials and create an authentication ticket.

    If a user selects the Remember me next time check box, the control creates a persistent cookie that remembers the user's credentials.

    To create a login page

    1. Create an ASP.NET Web application that uses ASP.NET membership.

    2. Create an ASP.NET Web page named Login.aspx in your application.

    Note: By default, ASP.NET forms authentication is configured to use a page named Login.aspx. You can change the default login page name in the Web.config file for your application using the LoginUrl property.

    3. Add a Login control to the page.

    4. Set the control's DestinationPageUrl property to the name of the page that the user will be redirected to after they log in. For example, you can set the DestinationPageUrl property to DestinationPageUrl="~/Membership/MembersHome.aspx", a members only page. If you do not specify a value for the DestinationPageUrl property, the user will be redirected to the original page the user requested after successfully logging in.

    The following example shows the markup for a Login control:

    Code:
    <asp:Login 
      ID="Login1" 
      runat="server" 
      DestinationPageUrl="~/MembersHome.aspx">
    </asp:Login>
    I hope this helps! Start reading microsoft MSDN!

  3. #3
    Join Date
    May 2008
    Posts
    115

    Re: Login Page for ASP.NET web application

    You can still use the built in Login control and save yourself some work. If you drop the Login control on your page. Click the Smart Tag and select "Convert to Template". You can then remove anything you want or add to it if you like and you'll still be able to take advantage of the Membership Providers without the need to create custom logic.

  4. #4
    Join Date
    Jun 2008
    Posts
    97

    Re: Login Page for ASP.NET web application

    Please Visit this webpage it practically shows you how to add login control tyo your page & configure it step by step.
    http://www.vbdotnetheaven.com/Upload...inControl.aspx

    I hope this helps you!

Similar Threads

  1. How to create xml file login page
    By hari2665 in forum Software Development
    Replies: 2
    Last Post: 29-09-2011, 04:56 PM
  2. Login page authentication system in ISP
    By Dexterr in forum India BroadBand
    Replies: 6
    Last Post: 08-08-2011, 08:27 PM
  3. Unable to redirect to login page
    By Rixwel in forum Windows Software
    Replies: 3
    Last Post: 07-08-2009, 01:27 PM
  4. Unable to access the login page
    By Gluteus in forum Operating Systems
    Replies: 3
    Last Post: 25-04-2009, 07:15 PM
  5. cannot login to support.microsoft.com page
    By Deabelos in forum Windows XP Support
    Replies: 5
    Last Post: 22-05-2008, 02:20 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,574,329.49323 seconds with 16 queries