using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using APNSoft.WebControls;

public partial class Menu_ServerSelection : System.Web.UI.Page
{

    protected void Page_Load(object sender, EventArgs e)
    {
        //Apply event-handling method
        myMenu.OnItemClick += new APNSoft.WebControls.MenuEventHandler(myMenu_OnItemClick);
    }


    void myMenu_OnItemClick(object sender, APNSoft.WebControls.MenuEventArgs e)
    {
        //Get component instance
        APNSoftMenu myMenu = (APNSoftMenu)sender;

        //Get clicked Item
        MenuElement myItem = e.MenuElement;

        //Display clicked item data
        string ClickedItem = "";
        ClickedItem += "Component ID: <b>" + myMenu.ID + "</b>";
        ClickedItem += "<br/>Item ID: <b>" + myItem.id + "</b>";
        ClickedItem += "<br/>Item title: <b>" + myItem.title + "</b><br/><br/>";
        lblClickedItem.Text = ClickedItem;
    }

}