Solved

add username and passwork to website

Posted on 2012-03-21
6
214 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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
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…
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…

733 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