aspxtreme

LoginStatus Control Syntax

ASP.NET Syntax   ASP.NET Syntax for Web Controls


Detects the user's authentication state and toggles the state of a link to display whether the users can log on to or log off from a Web site.

Declarative Syntax

For information on the individual members of this class, see LoginStatus in the class library.

Remarks

The LoginStatus control has two states:

  • Logged on to the Web site.
  • Logged off from the Web site.

The state is determined by the IsAuthenticated property of the Request property.

Syntax Example

This following code example shows how to use the LoginStatus control to create a link for a user to log on to or log off from a Web site.

<asp:loginstatus id="LoginStatus1" runat="server"
   logintext = "Log In"
   logoutaction = "Refresh" 
   logouttext = "Log Out" />
See Also

LoginStatus Class   LoginStatus Web Server Control



Books and more ...


Suggested Reading

Need a break ?



Previous page Back to top Next page

Check out related books at Amazon

© 2000-2008 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support aspxtreme