Solved

add username and passwork to website

Posted on 2012-03-21
6
210 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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…

743 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

13 Experts available now in Live!

Get 1:1 Help Now