Solved

ASP.net account login and account validation

Posted on 2013-01-06
14
365 Views
Last Modified: 2013-09-18
I am creating a new website using the prebuilt ASP.net 4.5 template for the initial layout.  The project already has a login and register page.  But if I wanted to create another database and page from scratch, how could I go about user account login validation and make it secure and at the same time be able to have new users register from scratch?  Anybody have a clue and can you give me coding examples?
0
Comment
Question by:VBBRett
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 4
  • 4
14 Comments
 
LVL 23

Accepted Solution

by:
Roopesh Reddy earned 300 total points
ID: 38749905
Hi,

YOu have many tutorials, if you google! May bot be very specific to 4.5, but it's almost the same process!

Some for you -

http://www.youtube.com/watch?v=fVia0YxfNAM

http://www.dotnetfunda.com/articles/article808-how-to-write-a-simple-login-page-in-aspnet.aspx

http://csharpdotnetfreak.blogspot.com/2012/06/login-page-form-example-in-aspnet.html

Hope it helps u...
0
 
LVL 41

Expert Comment

by:guru_sami
ID: 38760776
@VBBRett,
So do you just want to move the login/Register page and still use same built-in membership provider or you want to have you own tables to store username/password and other user information?
0
 

Author Comment

by:VBBRett
ID: 38760857
I would like to see both guru_sami
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 41

Assisted Solution

by:guru_sami
guru_sami earned 200 total points
ID: 38760874
@VBBRett,
Here is the list of all links related to ASP.NET Security and though they are targeted to 2.0 most of them are same for 4.5 as well.

http://weblogs.asp.net/scottgu/archive/2006/02/24/ASP.NET-2.0-Membership_2C00_-Roles_2C00_-Forms-Authentication_2C00_-and-Security-Resources-.aspx
0
 
LVL 23

Expert Comment

by:Roopesh Reddy
ID: 38767241
Hi,

Any Updates on this? Is your issue solved?
0
 

Author Comment

by:VBBRett
ID: 38767862
Hello roopeshreddy, I am taking a look right now at the answers and going through them right now.
0
 

Author Comment

by:VBBRett
ID: 38795284
Is it better to do Microsoft's asp.net wizard or is it better to code a solution from the ground up?
0
 
LVL 41

Assisted Solution

by:guru_sami
guru_sami earned 200 total points
ID: 38795292
It depends on your overall application requirements.

If the built-in Membership and Roles fit your needs, then go with that. No need to re-invent the wheel. For basic login and user information, it's the best way to go. It comes with all standard stuff, tested and lots of help available.

If there's going to be lots of customization of the user tables and stuff, go with your own from scratch.
0
 
LVL 23

Assisted Solution

by:Roopesh Reddy
Roopesh Reddy earned 300 total points
ID: 38795459
Hi,

ASP.NET Wizard is meant some thing for long running registration process, where you can split in to wizards.

Best example that suits ASP.NET Wizard is Online Examination!

There are Login Controls available in ASP.NET, you can take advantage of them!

Hope it helps u...
0
 

Author Comment

by:VBBRett
ID: 38892163
How would you create an account system similar to Facebook or other membership associated sites which make you login by email?
0
 
LVL 23

Assisted Solution

by:Roopesh Reddy
Roopesh Reddy earned 300 total points
ID: 38923360
Hi,

You can ask the users to create accounts with your web application by using their existing email id's. Once they register, you can send a Activation mail to their mail id and by clicking on you can activate their accounts!

Thus provides the check the email validation and only genuine users will be activated!!!

Login Controls are available in the ASP.NET  Server Toolbox - http://msdn.microsoft.com/en-us/library/ms178329(v=vs.100).aspx#the_createuserwizard_control

which allows you to create the User registration process with less code!

Hope it helps u...
0
 

Author Comment

by:VBBRett
ID: 38974072
I am having a weird issue where the code is not executing the insert for the Registration Process into the database which I find to be rediculous.  Now keep in mind that the new membership database that comes with a asp.net 4.5 C# Web Application does not have any stored procedures; so how does the insert get generated?  Thanks!
0
 
LVL 41

Expert Comment

by:guru_sami
ID: 38974480
0
 

Author Comment

by:VBBRett
ID: 39027982
OK, here is an update.  I am using a multi tiered setup for my membership.  I am using the membership tables that the asp.net 4.5 application gave me starting off, but I am using my own code to work with since the typical asp.net membership provider does not work with these tables.  So I have a custom profile table that I created that will store an image and information about that particular profile.  So, I have the following tables:

Applications
Memberships
Profiles - Will not use this table, too generic and not enough information to use this table
Roles
Users
UsersInRoles
UsersOpenAuthAccounts
UsersOpenAuthData
CustomProfiles

If you have Visual Studio 2012 and you start an ASP.net 4.5 web application, the following tables are given to you by default if you choose to use the OpenAuth options for memberships

Applications
Memberships
Profiles
Roles
Users
UsersInRoles
UsersOpenAuthAccounts
UsersOpenAuthData
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

705 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