Link to home
Start Free TrialLog in
Avatar of Stephen Forero
Stephen ForeroFlag for United States of America

asked on

add username and passwork to website

Hello All,

I'm trying to add a section for creating logins to a asp.net website I am creating through VS 2010 express.  I found numerous links on how to do this but it seems more complicated than it should be.  I also notice if I just hit CREATE NEW WEBSITE, it seems to do all the work for you.  (With a register page/login page)  Although I do not know where or how its saving the names and passwords.  I'm love to just import this code to my website but I'm not sure how.

Can anyone point me in the right direction?

I also saw authpro has something but they charge for more than 10 users.

thanks
Avatar of yawkey13
yawkey13
Flag of United States of America image

I think you are looking for ASP.NET Forms Authentication.  There are quite a few tutorials around on adding it to your site.  Here is Microsoft's page:

http://msdn.microsoft.com/en-us/library/xdt4thhy.aspx
Avatar of Stephen Forero

ASKER

using your suggestion I found this link.
http://msdn.microsoft.com/en-us/library/879kf95c.aspx

Do you mind taking a quick glance... this seems to be what I want.. allows users to register a name with username and login.

2 questions..
1.  Do you agree that it will accomplish what I'm looking for?
2,  I see this created a SQL Server Database named ASPNETDB.MDF and is created in    App_Data folder of the project.... question is will I actually put this on a web server.. is it possible to easily switch from the database on my c: drive to the sql database provider by my web server?


thanks... big noobie in this
ASKER CERTIFIED SOLUTION
Avatar of yawkey13
yawkey13
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
awesome, thanks for your help.. Any web servers you recommend that are relatively cheap with a sql database?
I use servergrid.com for most of my sites.  My plan runs about $300 dollars a year and I host about 10 sites under one account.  I've had them for 3-4 years and have only had 1 noticeable outage of a few hours during that really really nasty storm in the Northeast a couple years ago.  There are a lot of hosts out there.  Some might be better and/or cheaper.  This one was recommended by a friend and it does what I need it to.