| | |
Login Page
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Oct 2008
Posts: 56
Reputation:
Solved Threads: 1
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.
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.
![]() |
Similar Threads
- Updated : Simple ASP.Net Login Page (ASP.NET)
- Simple ASP.Net Login Page (Using VB.Net) (ASP.NET)
- Error message when running ASP login page (ASP)
Other Threads in the ASP.NET Forum
- Previous Thread: raise event handler for image button
- Next Thread: Class Variables
| Thread Tools | Search this Thread |
.net 2.0 3.5 activexcontrol advice ajax appliances asp asp.net bc30451 beginner bottomasp.net browser businesslogiclayer button c# c#gridviewcolumn cac checkbox class click commonfunctions compatible confirmationcodegeneration content contenttype control countryselector courier css database datagrid datagridview datagridviewcheckbox datalist deadlock deployment development dgv dialog dropdownmenu dynamic edit embeddingactivexcontrol expose findcontrol flash flv formatdecimal forms formview gridview homeedition iframe iis javascript jquery list menu mono mssql multistepregistration nameisnotdeclared novell objects order problem ratings rotatepage save search security serializesmo.table sessionvariables silverlight smartcard sql sqlserver2005 ssl suse textbox tracking treeview unauthorized validatedate validation vb.net video virtualdirectory vista visual-studio visualstudio vs2008 web webarchitecture webdevelopemnt webdevelopment wizard xml youareanotmemberofthedebuggerusers





