Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 13-02-2009
Member
 
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,
Reply With Quote
  #2  
Old 13-02-2009
Member
 
Join Date: May 2008
Posts: 2,008
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!
Reply With Quote
  #3  
Old 13-02-2009
Member
 
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.
Reply With Quote
  #4  
Old 13-02-2009
Member
 
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!
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Login Page for ASP.NET web application"
Thread Thread Starter Forum Replies Last Post
How to create xml file login page hari2665 Software Development 2 29-09-2011 04:56 PM
Login page authentication system in ISP Dexterr India BroadBand 6 08-08-2011 08:27 PM
Unable to redirect to login page Rixwel Windows Software 3 07-08-2009 01:27 PM
Unable to access the login page Gluteus Operating Systems 3 25-04-2009 07:15 PM
cannot login to support.microsoft.com page Deabelos Windows XP Support 5 22-05-2008 02:20 AM


All times are GMT +5.5. The time now is 10:49 PM.