Solved

add username and passwork to website

Posted on 2012-03-21
6
211 Views
Last Modified: 2012-03-22
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
Comment
Question by:solarissf
  • 4
  • 2
6 Comments
 
LVL 6

Expert Comment

by:yawkey13
ID: 37748499
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
 

Author Comment

by:solarissf
ID: 37748869
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
 
LVL 6

Accepted Solution

by:
yawkey13 earned 500 total points
ID: 37749097
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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
LVL 6

Expert Comment

by:yawkey13
ID: 37749107
0
 

Author Comment

by:solarissf
ID: 37749146
awesome, thanks for your help.. Any web servers you recommend that are relatively cheap with a sql database?
0
 
LVL 6

Expert Comment

by:yawkey13
ID: 37749221
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now