Suppose if we want to display some controls or contents based on the users role then this control is a champion of doing it with very less effort.
Refer the below code for using it.
<asp:LoginView ID="loginvew" runat="server">
<RoleGroups>
<asp:RoleGroup Roles="2">
<ContentTemplate>
<b>Technical Information:</b><%= TechnicalErrorMsg %>
</ContentTemplate>
</asp:RoleGroup>
</RoleGroups>
</asp:LoginView>
The content will be visible only for those users with role = 2.
Thought of sharing this simple tip!
Happy Coding!!!
Regards,
Satheesh
www.codedigest.com
www.satheeshbabu.com
http://satheeshbabu.blogspot.com