ASP.Net 2.0 login control provides the interface as well as in-built functionality of user login. Login control uses the default sql membership provider that authenticates the username and password for a specific account. Login control interface consists of following controls:
To provide the login functionality in your ASP.net web application just drag and drop the login control on the web form. There are some other properties or attributes of Login control that makes it more interactive. Following are the properties of Login Control that control its different behavior:
CreateUserText CreateUserText property displays the text for create user link in the login control.
CreateUserUrl CreateUserUrl property accepts the URL of the page having user registration form.
DestinationPageUrl DestinationPageUrl property takes the URL of the page that directs the user to the destination page upon successful login.
DisplayRemeberMe DisplayRemeberMe property sets remember me functionality on or off.
Orientation Orientation property sets the horizontal or vertical layout of the login control interface.
RememberMeSet RememberMeSet property, if it is true then displays remember me checkbox initially checked.
TextLayout TextLayout property sets the TextOnLeft or TextOnTop for the labels used for username and password
VisibleWhenLoggedIn VisibleWhenLoggedIn property hides the login control if its value is false
Note: Your Asp.Net web application must also have user sign up form so that users could use login control using their UserName and Password. Click here to learn the use of CreateUserWizard control of ASP.Net Login Controls
Be the first to rate this post
Tags: asp.net 2.0, asp.net login, asp.net membership login, aspnetdb, login control, createuserwizard control
10/11/2008 3:36:53 AM