Simple XML Demo

This demo illustrates binding an XML file to skmMenu. It does not set any stylistic properties of skmMenu. Rather, the skmMenu was simply added to the Web page and two lines of code were used to bind the XML to the menu. You can click on some of the menu items and be whisked to the appropriate URL.

View the XML file bound to the DataGrid, SimpleXML.xml...



Source Code
HTML Portion:
				
<%@ Register TagPrefix="cc1" Namespace="skmMenu" Assembly="skmMenu" %>
<cc1:Menu id="Menu2" runat="server"></cc1:Menu>
				
Code-Behind Code:
				
private void Page_Load(object sender, System.EventArgs e)
{
	Menu1.DataSource = Server.MapPath("SimpleXML.xml");
	Menu1.DataBind();
}