The Login Status control displays a login link for users who are not authenticated and a logout link for users who are authenticated. The login link takes the user to a login page. The logout link resets the current user's identity to be an anonymous user.
You can customize the appearance of the Login Status control by setting the Login Text and Login Image Url properties. The login link automatically redirects to the configured login page, and the logout link automatically calls the method Form Authentication. Sign Out for logging off the user.
<asp:LoginStatus ID="LoginStatus1" runat="server" LoginText="Log In" LogoutText="Log Out" LogoutPageUrl="~/Home.aspx" LogoutAction="Redirect" onloggedout="LoginStatus1_LoggedOut" />
Login Status control properties:
- Login Text The text displayed if the user is not signed in.
- Login Image Url A URL for an image displayed as an icon for the login link.
- Logout Text The text displayed if the user is authenticated.
- Logout Image Url A URL for an image displayed as an icon for the logout link.
- Logout Action Configures the action the control performs if the user clicks the logout link that is displayed when the user is authenticated. Valid options are Refresh, Redirect, and Redirect To Login Page. The first option just refreshes the current page, the second option redirects to the page configured in the Logout Page Url , and the last option redirects to the login page.
- Logout Page Url A page to redirect to if the user clicks the logout link and the Logout Action is set to Redirect.
Horas Panjaitan
15-May-2014John Smith
09-Jul-2013satyajit patra
08-Jul-2013Anybody plz help me..
thanks in advance..
Chris Anderson
08-May-20132)If you want to move the grid row values to other pages, then on the click of row content or control you also have to pass the row values to that page.
Subhanjan Ghosh
07-May-2013Anonymous User
13-Oct-2011Thanks