Menu Control in 2.0 and client-side control

Discussion in 'ASP .Net Web Controls' started by JCM.NET, May 17, 2006.

  1. JCM.NET

    JCM.NET Guest

    HI,
    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.
    thanks,
    Jason
    JCM.NET, May 17, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Boss302
    Replies:
    0
    Views:
    1,018
    Boss302
    Nov 21, 2006
  2. Replies:
    0
    Views:
    400
  3. Bogdan
    Replies:
    2
    Views:
    635
    Bogdan
    Jun 9, 2008
  4. Zoe Hart
    Replies:
    1
    Views:
    343
    Scott Wisniewski
    Jan 8, 2004
  5. Ogre

    Client-Side and Server-Side Control

    Ogre, Apr 26, 2004, in forum: ASP .Net Web Controls
    Replies:
    4
    Views:
    254
    David Jessee
    Apr 29, 2004
Loading...

Share This Page