Click here to Skip to main content
15,900,714 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
:) i wat to code a simple login page for an asp.net site can any one help me out?
Posted

Reading a book on ASP.net with C# would be a good start.
 
Share this answer
 
It is very easy u have to use the login controls i.e.

First drag and drop a login control from the Login Tool which is present in the text box

Then in the menubar go to the website select ASP.NET configuration.
Third step would be configuring your website so just click on the hyperlink which says security and the a page would apperar

just click on the
Use the security Setup Wizard to configure security step by step.

click on next and then u will see a page which will have two radio buttons kust select the From the Internet option and then click Next, you will see one more page which says Advance Provider setting just click Next, The Next Page will ask you for roles if u want roles in ur webpage u can define roles and if not then click next

Next Screen which you will see would be a create user Page go on create one or two user and when ur done click next and then Finish

Now Create another page say AfterLogin.aspx and set the Login controls property which says Destination Page Url to AfterLogin.aspx

Run the Login.aspx and then enter the user name and password you created remember that the password option takes one alpha numeric word so u can set the password like r@12345 or something like that

Do Rate my answer once you find it useful

Thanks & Regards
Radix :rose:
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900