Glossary Item Box

AuthorizationForms: Authorization forms

See Also CmsDeveloperGuide Send comments on this topic.

Cms Login Name

The control displays user name on a site page. This control is similar to the standard ASP.NET LoginName control.
By default, the LoginName control displays name contained in the User property of the Page class. If the Name property is empty, nothing is displayed.

To change the text displayed by the LoginName control, set the FormatString property.

 

Use the FormatString property to set the text which would be displayed with the name.

Use {0} where the user name should be set in. For example “Welcome, {0}”.

 
You can use this control everywhere on the site.
 
Example of using CmsLoginName control:
<%@ Register Assembly="CMSLib" Namespace="CMSLib.Providers" TagPrefix="cmsa" %>

<cmsa:CmsLoginName id="LoginName1" runat="server" FormatString ="Welcome, {0}" />

AuthorizationForms: Authorization forms

 

 


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