Remote XML Demo

This demo illustrates binding an XML file to skmMenu, where the XML file resides on a remote Web server. This works by loading the remote XML file into an XmlDocument object, and then assigning the XmlDocument to the Menu's DataSource.

View the XML file bound to the DataGrid, http://datawebcontrols.com/demos/SimpleXML.xml...




Source Code
HTML Portion:
				
<%@ Register TagPrefix="cc1" Namespace="skmMenu" Assembly="skmMenu" %>
<cc1:Menu id="Menu2" runat="server" Font-Names="Arial" Font-Size="Small" BackColor="#E0E0E0"
	Cursor="Pointer" ItemSpacing="0" ItemPadding="5">
	<SelectedMenuItemStyle BackColor="#FFC080"></SelectedMenuItemStyle>
</cc1:Menu>
				
Code-Behind Code:
				
private void Page_Load(object sender, System.EventArgs e)
{
	XmlDocument xmlDoc = new XmlDocument();
	xmlDoc.Load("http://datawebcontrols.com/demos/SimpleXML.xml");

	Menu1.DataSource = xmlDoc;
	Menu1.DataBind();
}