Client code on MenuItem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • David C

    #1

    Client code on MenuItem

    I have not used MenuItems before and I want to have the click of an item run
    a local Javascript function rather than asp.net code. I did not see a
    OnClientClick option. How do I do this? Thanks.

    David


  • Mark Rae [MVP]

    #2
    Re: Client code on MenuItem

    "David C" <dlchase@lifeti meinc.comwrote in message
    news:OwzYZOAaIH A.4332@TK2MSFTN GP04.phx.gbl...
    I have not used MenuItems before and I want to have the click of an item
    run a local Javascript function rather than asp.net code. I did not see a
    OnClientClick option. How do I do this?
    <asp:MenuItem Text="Hello" NavigateUrl="ja vascript:alert( 'Hello');" />


    --
    Mark Rae
    ASP.NET MVP


    Comment

    • David C

      #3
      Re: Client code on MenuItem

      Thank you.
      "Mark Rae [MVP]" <mark@markNOSPA Mrae.netwrote in message
      news:%23gdhqTAa IHA.4160@TK2MSF TNGP03.phx.gbl. ..
      "David C" <dlchase@lifeti meinc.comwrote in message
      news:OwzYZOAaIH A.4332@TK2MSFTN GP04.phx.gbl...
      >
      >I have not used MenuItems before and I want to have the click of an item
      >run a local Javascript function rather than asp.net code. I did not see
      >a OnClientClick option. How do I do this?
      >
      <asp:MenuItem Text="Hello" NavigateUrl="ja vascript:alert( 'Hello');" />
      >
      >
      --
      Mark Rae
      ASP.NET MVP
      http://www.markrae.net

      Comment

      Working...