Title : Asp.net Log In and CreateNewUser Control
Description :
Whenever we wanted to develop Log In and register page we think of Text Box to enter required details and then a button to submit that data to database. Asp.Net came with few controls they gives a ready Log In and Create New User control, by making use of these controls we can easily develop Log In page.
All you need to do is just drag and drop Log In and Create New User Control on your webpage and THAT’S IT, rest work is done by Asp.Net controls. AMAZING RIGHT?
Both controls comes with predefined templates, even you can style them as per your need, by making use of LayoutTemplate.
After adding those controls it automatically adds a database in your back end, add columns to it and whenever you add new user it fires query and add that user data into database. The best part of it is it Stores password in ENCRYPTED as well as HASHED format.
There are few other controls which are add on to these controls.
Log In Name, Log In View, Log In Status, Password Recovery, Change Password which gives power to these two controls.
You just need to add few elements into your web.config file.
Demo :
.aspx Code
LogIn.aspx
Register.aspx
< %@ Page Language="C#" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="_Default" %>
< !DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
Home.aspx
< %@ Page Language="C#" AutoEventWireup="true" CodeFile="Home.aspx.cs" Inherits="Home" %>
< !DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
Web.Config
< ?xml version="1.0"?>