I am currently working on making the buttons in our web application more user-friendly for international users. I have successfully used a sprite image and applied CSS classes to create these buttons.
The structure of the buttons is set up as follows:
<table cellpadding="0" cellspacing="0" class="pwbtn" onmouseout="this.className='pwbtn';"
onmouseover="this.className='pwbtnh';">
<tr>
<td class="a1">
</td>
<td class="a2" onclick="CallShowBlocker()">
<asp:linkbutton id="ButtonNext" onclientclick="PreNavigationScript();" runat="server"
cssclass="RemoveLinkStyle"></asp:linkbutton>
</td>
<td class="a3">
</td>
<td class="spacer">
</td>
</tr>
</table>
Currently, the buttons work as expected, but users have to click directly on the text to trigger the event.
I would like to bind the href value of the linkbutton to the table's onclick event so that clicking anywhere within the image will activate the button.
In addition, the href value is generated by an event handler in C# and looks like this:
"javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions('ContWizard2$Wizard1$cFooter$ButtonNext', '', true, '', '', false, true));"
If anything is unclear or if there are additional parts of code you require, please let me know. Thank you in advance.