954,577 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Login Page

Hi,
Iam starting my career as a .net developer.Kindly tell me how to proceed.Iam the beginner in .NET.what all i need to study.Kindly give me one basic login page example.

lefrancisco1
Newbie Poster
4 posts since Mar 2009
Reputation Points: 10
Solved Threads: 0
 

Hello!

If you use Visual Studio or Visual Web Developer Express, then it's quite simple. You just create a web form (if you'd like to use the default values, name it "Login.aspx"), and drop a Login control from the toolbox on it. That's the easiest way to do so.
Create a folder named MembersOnly, and some form in it any name you'd like.

To test if it's working, create another form, name it Reg.aspx, put a CreateUserWizard on it. Then open the Website menu, inside it the ASP.NET Configuration. Once it opened, goto Security, and "Select authenctication type", indside it select "From the Internet". Then click on Create access rules. inside it click on the "MembersOnly" folder, check Anonymous Users, and Deny, then save. Save your settings. Notice that the program created you a database, named ASPNETDB to your App_Data folder. It has all the basic settings to registrate, login, create roles, etc.

Now run your website, and try to enter the to MembersOnly/yourform.aspx, and you find that it automatically redirects you to your login page. Once you logged in, you can see the page.

You can change any of it's aspects (including the database itself) in the web.config.

Hope I helped you.

konczuras
Junior Poster in Training
59 posts since Oct 2008
Reputation Points: 10
Solved Threads: 1
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You