LoginStatus control also works with sql membership provider of asp.net 2.0 that detects the status of user currently logged in or not. If user is currently logged in then LoginStatus control displays the logout button and if the user has not logged in the web site or the user is viewing the page anonymously then LoginStatus Control displays the login button.
Login button of LoginStatus control sends the user to the login page. LoginStatus control picks the path of the login page from the forms authentication section of the web.config file e.g.:
Logout button logouts the user and refreshes the current web page and changes the Login Status of current user by resetting the LoginStatus Control to display login button again.
You can also change the logout page destination by setting LoginStatus Control properties as following:
LogoutAction LogoutAction property consists of 3 values:
LogoutPageUrl LogoutPageUrl property accepts the URL to which it redirects the user when he clicks on logout button.
Be the first to rate this post
Tags: asp.net 2.0, asp.net loginstatus, asp.net membership login, aspnetdb, loginstatus control, loginname control, login control, createuserwizard control
10/11/2008 3:44:16 AM