APNSoft - Web Controls, components for ASP.NET Home Help Center Contact Us
About UsProductsDownloadsPurchase
Support

Menu
Version 3.5



What's New
Overview
Features
Reference Book
Licensing
Support



Populating with Data
Appearance
Layout
Behavior
Programming




Open URL
Text operations
Background color


Main text.


The ClientSideOnSelect property specifies the name of the client-side function to be called when an item is selected. The function must accept two parameters: MenuID and ItemID.

Also, menu item can include a JavaScript call in the href attribute. To pass parameters in the client-side function we use special active blocks $MenuID$ and $ItemID$, instead of which data is inserted. Example:

<item title="JavaScript" href="javascript:ItemClick('$MenuID$','$ItemID$');" />

JavaScript function:

function ItemClick(MenuID,ItemID){
    alert('MenuID='+MenuID+',ItemID='+ItemID);
};



Code Samples:
WebForm1.aspxWebForm1.aspx.csWebForm1.aspx.vbMenu.XML
Skin Style (Horizontal)Skin Images  



  © 2003-2008 APNSoft. All rights reserved. Table of Contents   Terms of use   Contact Us   Help Center