locked
menuitemclick event doesn't fire if non alphnumeric characters are in value field. RRS feed

  • Question

  • User-1126925207 posted
    See the HTML below :-
    <asp:Menu ID="EntertainmentMenu" runat="server" Orientation="Horizontal" onmenuitemclick="OnClick" CssSelectorClass="SimpleEntertainmentMenu">
    <Items>
    <asp:MenuItem Text="Music" Value="Test+//">
    </asp:MenuItem>
    </Items>
    </asp:Menu>
     If the Value field was simply "Test" then OnClick would fire. If it is "Test+//" then it doesn't work (It does work in the unadapted menu control.
    I use the value field to store a web page and query string such as "Page2.aspx?Date=01/12/2008&Code=314"
    I've tried htmlencode/decode and urlencode/decode but to no avail.
    Any help would be greatly appreciated.
    Cheers
     
     
     
    Saturday, January 12, 2008 5:08 PM

All replies

  • User-1126925207 posted

    An update on this.

    If the Text field contains a + character, then onclick doesn't fire. A forward slash is fine in the text field though.

     

    Monday, January 14, 2008 1:13 PM