Solved

ASP.net account login and account validation

Posted on 2013-01-06
14
359 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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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 discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

856 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