Loads a menu from the specified location.
[Visual Basic]
Public Shared Function LoadMenu( _
ByVal
virtualPath As
String _
) As
EO.Web.Menu
[C#]
public static
Menu LoadMenu(
string virtualPath);
Parameters
-
virtualPath
- The virtual path of the menu file. You can use '~' to represent the Web application root. For example, you can use "~/menu1.EOWeb.ascx" to load "menu1.EOWeb.ascx" in the Web application root directory.
Return Value
Returns the loaded menu.
Remarks
Uses Menu Builder to save menu as a file.
Tip:
To load a slide menu, use LoadSlideMenu.
See Also
Menu Class | EO.Web Namespace