| ||||||||||||||||||||||||||||||
LoginName ClassSystem.Web.UI.WebControls Namespace .NET Framework version 2.0 Displays the value of the System.Web.UI.Page.User.Identity.Name property.
|
||||||||||||||||||||||||||||||
| Visibility | Name | Value Type | Accessibility |
|---|---|---|---|
| public | FormatString | String | [ Get , Set ] |
| Visibility | Name | Parameters | Return Type |
|---|---|---|---|
| public | RenderBeginTag | ( HtmlTextWriter writer ) | Void |
| public | RenderEndTag | ( HtmlTextWriter writer ) | Void |
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.
ASP.NET Login Controls LoginName Web Server Control
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