KaxMenuLoadContentFile Method |
Populates the KaxMenu control from external XML file.
Namespace: Kettic.AspNet.ControlsAssembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntaxpublic override void LoadContentFile(
string xmlFileName
)
Public Overrides Sub LoadContentFile (
xmlFileName As String
)
public:
virtual void LoadContentFile(
String^ xmlFileName
) override
abstract LoadContentFile :
xmlFileName : string -> unit
override LoadContentFile :
xmlFileName : string -> unit
Parameters
- xmlFileName
- Type: SystemString
The name of the XML file.
Remarks
The newly added items will be appended after any existing ones.
Examples
The following example demonstrates how to populate
KaxMenu control
from XML file.
private void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
KaxMenu1.LoadContentFile("~/Menu/Examples/Menu.xml");
}
}
Private Sub Page_Load(sender As Object, e As EventArgs) Handles MyBase.Load
If Not Page.IsPostBack Then
KaxMenu1.LoadContentFile("~/Menu/Examples/Menu.xml")
End If
End Sub
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
See Also