Glossary Item Box

AuthorizationForms: Authorization forms

See Also CmsDeveloperGuide Send comments on this topic.

Cms Login View

The control displays the appropriate content template for a given user, based on the user's authentication status and role membership. This control is liked on standard ASP.NET LoginView control.

The CmsLoginView control displays different Web site content templates (or "views") for different users, based on whether the user is authenticated and, if so, which Web site roles he or she belongs to. CmsLoginView behavior is liked on standard CmsLoginView control behavior.

 

You can use the control in any place on site.
 

Using example:

<%@ Register Assembly="CMSLib" Namespace="CMSLib.Providers" TagPrefix="cmsa" %>

<P><cmsa:CmsLoginStatus id="CmsLoginStatus1" runat="server"/></P>
<P>
    <cmsa:CmsLoginView id="CmsLoginView1" runat="server">
        <AnonymousTemplate>
            Please log in for personalized information.
        </AnonymousTemplate>
        <LoggedInTemplate>
            Thanks for logging in
            <cmsa:CmsLoginName id="CmsLoginName1" runat="Server"/>.
        </LoggedInTemplate>
        <RoleGroups>
            <asp:RoleGroup Roles="Admin">
                <ContentTemplate>
                    <cmsa:CmsLoginName id="CmsLoginName2" runat="Server"/>, you
                    are logged in as an administrator.
                </ContentTemplate>
            </asp:RoleGroup>
        </RoleGroups>
    </cmsa:CmsLoginView></P>

 

AuthorizationForms: Authorization forms

 

 


© 2005-2007 Astron Digital Ltd. All Rights Reserved.