Loads a menu skin from the specified location.
[Visual Basic]
Public Shared Sub LoadMenuSkin( _
ByVal
virtualPath As
String, _
ByVal
customSkinId As
String _
)
Parameters
-
virtualPath
- The virtual path of the external skin file. You can use '~' to represent the Web application root. For example, you can use "~/skins/MenuSkin1.EOMenu.ascx" to load "MenuSkin1.EOMenu.ascx" in the "skins" directory.
-
customSkinId
- The ID of the custom skin. You can set this ID to other menus to apply this Skin to the menus.
Remarks
Menu Builder can save a menu as an external skin. This function must be called first to load a saved skin from disk into memory. As the function only needs to be called once, you can place it in Application_Start event handler.
Tip:
To load a slide menu skin, use LoadSlideMenuSkin.
See Also
Menu Class | EO.Web Namespace