Welcome Guest Log in
   The topic address is: http://callbackpage.softain.com/Help/ControlAlias/ControlAlias.aspx   Send to a friend
SoftAIN class library
ControlAlias class
See also  Members
Collapse all  
 
The objects of this class are designed to connect a user control with an easy-to-use name.

Namespace: SoftAIN
Assembly:CallbackPage.dll

CollapseSyntax

C#
public class ControlAlias: System.Web.UI.Control, PathHolder.ISiteMapInfo

CollapseRemarks

The class is used only as a member of the UserControlHolder.ControlAliases collection. Its main purpose is to give you a convenient mechanism to download a user control. The full path to the connected user control is determined by the FullName property. Apart from the path, each user control has a corresponding short name determined by the AliasName property. It is the value to be assigned to the UserControlHolder.CurrentControl property.

Apart from making the change of user controls easier, the ControlAlias class implements the PathHolder.ISiteMapInfo interface using its FriendlyName property for that. If you do not want the control to give information for the site map, set the SiteMapInfo property to False.

CollapseExample

<div id="MainDiv" runat=server>
    <CallbackPage:UserControlHolder ID="Default" CurrentControl="Home" runat=server>
        <CallbackPage:ControlAlias AliasName="Home" FullName="~/Controls/Welcome/Welcome.ascx" runat=server/>
        <CallbackPage:ControlAlias AliasName="Demo" FullName="~/Controls/Demo/Demo.ascx" runat=server/>
        <CallbackPage:ControlAlias AliasName="Help" FullName="~/Controls/Help/Help.ascx" runat=server/>
        <CallbackPage:ControlAlias AliasName="Download" FullName="~/Controls/Download/Download.ascx" runat=server />
        <CallbackPage:ControlAlias AliasName="Register" FullName="~/Controls/Register/Register.ascx" runat=server />
    </CallbackPage:UserControlHolder>
</div>
                            

CollapseHierarchy

CollapseSee also

Copyright © 2005-2007 SoftAIN