A Simple Demo Illustrating skmMenu in Action

This demo shows skmMenu in action without any fancy stylistic properties set. The source code (shown below), is very simple: the source code portion contains just two lines of code and the HTML portion just has the syntax for the skmMenu server control.

Note that clicking any of the clickable menu options will send you to a URL.

Realize that the menu's data is specified via an XML file, named MenuData.xml in this example. Be sure to check out the XML file.



Source Code:

<%@ Register TagPrefix="skm" Namespace="skmMenu" Assembly="skmMenu" %>
<script language="VB" runat="server">
  Sub Page_Load(sender as Object, e as EventArgs)
    If Not Page.IsPostBack then
      Menu1.DataSource = Server.MapPath("MenuData.xml")
      Menu1.DataBind()
    End If
  End Sub
</script>

<form runat="server">
	<skm:Menu id="Menu1" runat="server" />
</form>