Click or drag to resize
KaxMenuLoadContentFile Method
Populates the KaxMenu control from external XML file.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public override void LoadContentFile(
	string xmlFileName
)

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");
    }
}
See Also