Solved

ASP.net account login and account validation

Posted on 2013-01-06
14
349 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
  • 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
 
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
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.

 
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

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

Suggested Solutions

Title # Comments Views Activity
C# GridRow get Old/New Value 1 55
Hidden Field Value 10 61
I need help displaying 2 models in one view in my MVC.Net application with C# code behind 5 35
Class object 2 27
I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

895 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

15 Experts available now in Live!

Get 1:1 Help Now