D
DC Gringo
I have a clickable image that I would like to convert into a server control
imagebutton accessing a server-side onClick event and a client-side
javascript onclick event as well. Is this possible? How can I invoke both
the client side javascript event and the server side VB?
Here's what I started with:
<A
ONMOUSEOVER="nbGroup('over','TabB','TabB_f2.gif','TabB_f3.gif',1);"
ONCLICK="nbGroup('down','navbar1','TabB','TabB_f3.gif',1);"
ONMOUSEOUT="nbGroup('out');"
HREF="default.aspx?pageID=shas">
<IMG
SRC="TabB.gif" WIDTH="217"
BORDER="0" NAME="TabB">
</A>
Here's what I'm stuck on for an equivalent imagebutton server control...also
notice that VS.NET doesn't like the onMouseOver and onMouseClick attributes.
<ASP:IMAGEBUTTON
ID="ImageButton1"
RUNAT="server"
ONMOUSEOVER="nbGroup('over','TabB','TabB_f2.gif','TabB_f3.gif',1);"
ONCLICK="nbGroup('down','navbar1','TabB','TabB_f3.gif',1);"
ONMOUSEOUT="nbGroup('out');"
IMAGEURL="TabB.gifdefault.aspx?pageID=shas">
</ASP:IMAGEBUTTON>
imagebutton accessing a server-side onClick event and a client-side
javascript onclick event as well. Is this possible? How can I invoke both
the client side javascript event and the server side VB?
Here's what I started with:
<A
ONMOUSEOVER="nbGroup('over','TabB','TabB_f2.gif','TabB_f3.gif',1);"
ONCLICK="nbGroup('down','navbar1','TabB','TabB_f3.gif',1);"
ONMOUSEOUT="nbGroup('out');"
HREF="default.aspx?pageID=shas">
<IMG
SRC="TabB.gif" WIDTH="217"
BORDER="0" NAME="TabB">
</A>
Here's what I'm stuck on for an equivalent imagebutton server control...also
notice that VS.NET doesn't like the onMouseOver and onMouseClick attributes.
<ASP:IMAGEBUTTON
ID="ImageButton1"
RUNAT="server"
ONMOUSEOVER="nbGroup('over','TabB','TabB_f2.gif','TabB_f3.gif',1);"
ONCLICK="nbGroup('down','navbar1','TabB','TabB_f3.gif',1);"
ONMOUSEOUT="nbGroup('out');"
IMAGEURL="TabB.gifdefault.aspx?pageID=shas">
</ASP:IMAGEBUTTON>