aspxtreme

LoginName Class

System.Web.UI.WebControls Namespace


.NET Framework version 2.0

Displays the value of the System.Web.UI.Page.User.Identity.Name property.

LoginName Class Members

Collapse   Constructors

Visibility Constructor Parameters
public LoginName ( )

Collapse   Properties

Visibility Name Value Type Accessibility
public FormatString String [ Get , Set ]

Collapse   Methods

Visibility Name Parameters Return Type
public RenderBeginTag ( HtmlTextWriter writer ) Void
public RenderEndTag ( HtmlTextWriter writer ) Void

Remarks

By default, the LoginName control displays the name contained in the User property of the PageClass.aspx class. If the System.Web.UI.Page.User.Identity.Name property is empty, the control is not rendered.

To change the text displayed by the LoginName control, set the FormatString property.

NOTE: The LoginName control cannot be used outside the <form> tag on a Web page. Specifically, the LoginName cannot be used to put the user's name in the title of a page.

For examples illustrating use of this control, see the individual member types of this class. For syntax information, see LoginName in ASP.NET Syntax for Web Controls.

See Also

ASP.NET Login Controls   LoginName 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