[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 220
  • Last Modified:

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
0
solarissf
Asked:
solarissf
  • 4
  • 2
1 Solution
 
yawkey13Commented:
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
0
 
solarissfAuthor Commented:
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
0
 
yawkey13Commented:
1.  Yes, this is what you are looking for.  
2.  When I have implemented this in the past, the login database has always been on a remote server.  The location of the database is configurable.  The connection string is in the web.config file.  You would backup your local db, restore it to your production db, then repoint the string in web.config.
0
Microsoft Certification Exam 74-409

VeeamĀ® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
solarissfAuthor Commented:
awesome, thanks for your help.. Any web servers you recommend that are relatively cheap with a sql database?
0
 
yawkey13Commented:
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.
0

Featured Post

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now