Skip to main content

Posts

Showing posts from January, 2017

Simple Login Application using Sessions in ASP.NET MVC

MvcLoginAppDemo.zip Download 100% FREE Spire Office APIs This article explains the following: How to create a  ASP.NET  MVC Project How to Add ADO.NET Entity Data Model How to Add Controller How to validate User Credentials How to keep User Details in Sessions and display in User DashBoard Step: Design your Database Create the UserProfile table using the following script. Create Table UserProfile       (           UserId  int  primary key identity(1, 1),           UserName varchar(50),           Password varchar(50),           IsActive bit       )   Insert user records using the following script. Insert into UserProfile   Select  'jaipal' ,  'jai1234' , 1 Union All   Select  'praveen' ,  'praveen1234' , 1 Union All   Select  'pruthvi' ,  'pruthvi1234' , 1  Step 1: Create Project Go to  FILE ,  New , then click on  Project . Select Visual C#, Web under Installed templates. After that sele