Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Menu Control in 2.0 and client-side control

Thread Tools

Menu Control in 2.0 and client-side control

Posts: n/a
i am having problems using client side events with the menu control. I am
creating the menu items dynamically using an XmlDataSource. How can I via
javascript set a button as in 'clicked' state? I now you can do
mnuNav.Items(0).Selected = True on server side (however i have problems with
this working also), but I want to have a btn shown as selected after page is
done loading, and do this in a javascript block. Ideally, i would like to
handle all menu click events on client as well, but I can't get this to work
either. I have tried doing:
<asp:Menu ID="mnuNav" OnMenuItemClick ="javascript:ClickME()"
runat="server" DataSourceID="XmlDataSource1"
but that gives error.
any help is greatly appreciated.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Menu Control and Sitemap, eliminate the home column on the menu display empire5 ASP .Net 1 01-11-2007 03:30 AM
How do I set selected Menu item in a asp:menu control? ASP .Net 0 12-22-2006 08:05 AM
Horizontal Menu Navigation Web Control - Spaces Between Menu Items Philip ASP .Net Web Controls 1 03-21-2006 01:55 PM
Iterating through all the menu/child items in a menu control Bryan ASP .Net 1 03-01-2006 09:38 AM
Adding Access keys to menu items in the Menu control Mike Tavares ASP .Net Web Controls 2 01-05-2006 11:06 AM