Solved

Sample Code for MVC 4 forms authentication. Any recommendations

Posted on 2013-01-17
4
678 Views
Last Modified: 2013-01-29
Hello. I would like to create a simple login/registration screen for my website using MVC 4, with forms authentication. Authenticating against Sql server.

Does anyone know of a sample project they can share with me, in order to get up and running quickly? I just need solid code that works.

If the sample code only authenticates against username and passwords stored in the web.config file, that is okay. As I can modify the code to authenticate against sql server.
0
Comment
Question by:brgdotnet
  • 3
4 Comments
 
LVL 19

Accepted Solution

by:
Amandeep Singh Bhullar earned 310 total points
ID: 38792609
Hi,

Check out the links
http://code.msdn.microsoft.com/ASPNET-MVC-4-Sample-37924d68
http://www.asp.net/mvc/tutorials/mvc-4

and see if u can get something out of it usefull
0
 
LVL 2

Author Comment

by:brgdotnet
ID: 38792964
Hi Aman,
I went to the links, however none of these appears to implement forms authentication? I will download the source and take a look.
0
 
LVL 2

Author Comment

by:brgdotnet
ID: 38796408
I looked through the code in both of those projects. Nothing on forms authentication> Maybe someone else has some recommendations.
0
 
LVL 2

Author Closing Comment

by:brgdotnet
ID: 38833777
No good example of forms authentication. Thanks for trying though.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Normally the drop down box control found in the .Net framework tools is able to select just one data and value at a time, which is displayed on the text area.   But what if you want to have multiple values to be selected in the drop down box? As …
Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

708 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

19 Experts available now in Live!

Get 1:1 Help Now