Login Page

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Mar 2009
Posts: 4
Reputation: lefrancisco1 is an unknown quantity at this point 
Solved Threads: 0
lefrancisco1 lefrancisco1 is offline Offline
Newbie Poster

Login Page

 
0
  #1
Mar 25th, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 56
Reputation: konczuras is an unknown quantity at this point 
Solved Threads: 1
konczuras konczuras is offline Offline
Junior Poster in Training

Re: Login Page

 
0
  #2
Mar 27th, 2009
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC