J
Jennifer Mathews
I have a control in a user control:
<asp:ImageButton ID="imgPlusMinus" runat="server"
ImageUrl="~/gmbDiscussion/images/div_minus.gif" OnClientClick="<%= myVariable %>" />
I am using a variable for the OnClientClick. I have a default of:
Friend myVariable As String = "whatever();return false;"
But for some reason the html output is
onclick="<%= myVariable %>"
and not "whatever();return false;" as I would have expected.
Can anyone tell me what I am doing wrong?
Thanks
<asp:ImageButton ID="imgPlusMinus" runat="server"
ImageUrl="~/gmbDiscussion/images/div_minus.gif" OnClientClick="<%= myVariable %>" />
I am using a variable for the OnClientClick. I have a default of:
Friend myVariable As String = "whatever();return false;"
But for some reason the html output is
onclick="<%= myVariable %>"
and not "whatever();return false;" as I would have expected.
Can anyone tell me what I am doing wrong?
Thanks