Tuesday, October 13, 2009

What is LoginView control in ASP.NET

LoginView Control: This control provides templates in which you can create different content for anonymous and authenticated users. The LoginView control is also role-aware, so you can actually create different templates for authenticated users in different roles.

The control displays one of two templates: the AnonymousTemplate or the LoggedInTemplate. In the templates, you can add markup and controls that display information appropriate for anonymous users and authenticated users, respectively.

The LoginView control also includes events for ViewChanging and ViewChanged, which allow you to write handlers for when the user logs in and changes status.

Labels:

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home