Home  |  Contact us    
Loginname Control in Asp.Net 2.0


What is LoginName control in ASP.NET 2.0?

LoginName control: This control is a placeholder that displays the username of the user. If the current user is anonymous (that is, not authenticated), this control does not render any output.


The LoginName exposes a FormatString property that you can use to display more than just the username. For example, the FormatString could be set to "Welcome, {0}", which would produce the output "Welcome, John" when John is logged in.

Category: ASP.NET 2.0 Faqs, Interview Questions & Answers



Ask New Questions
Microsoft.Net Framework
.Net 2.0 Namespaces
.Net Assemblies
OOPS Faqs in C#
ASP.Net Faqs
ASP.Net 2.0 Faqs
Web Services Faqs
ADO.Net Faqs
Database Faqs
OOPS Faqs
IT Project Management