[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

ASP.net account login and account validation

Posted on 2013-01-06
14
Medium Priority
?
392 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 1200 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 41

Assisted Solution

by:guru_sami
guru_sami earned 800 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 800 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 1200 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 1200 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

834 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