I have an ItemTemplate inside a listview with a linkbutton wrapped around three table rows. The linkbutton is supposed to make the whole rows clickable but this only works in IE. Does anyone have an idea about why? The link works if I move the rows out of the linkbutton and write some gibberish text instead, but that's not what I want. Cross-browser support can be extremely annoying sometimes.
I'll post the code below. Any help is very appreciated...
I'll post the code below. Any help is very appreciated...
Code:
<ItemTemplate>
<asp:LinkButton ID="lnkBtnEdit" runat="server" OnCommand="OnButtonCommand">
<tr style="height: 50px;cursor:pointer;" id="trRow" runat="server">
<td class="Srow"><asp:Literal ID="LitInvoiceNumber" runat="server"></asp:Literal></td>
<td class="Srow">
<asp:Literal ID="lit1" runat="server"></asp:Literal>
<asp:Literal ID="lit2" runat="server"></asp:Literal> </td>
<td class="Srow"><asp:Literal ID="lit3" runat="server"></asp:Literal></td>
<td class="Srow"><asp:Literal ID="lit4" runat="server"></asp:Literal></td>
<td class="Srow"><asp:Literal ID="lit5" runat="server"></asp:Literal></td>
<td class="Srow" style="vertical-align: middle; text-align: center; border-right: 1px #F0F0F0 solid;"><asp:ImageButton ID="imgBtnShowPdf" runat="server" AlternateText="alternate text" /><br />Show PDF</td>
<td><asp:HiddenField ID="hidLineNumber" runat="server" /></td>
</tr>
</tr>
<tr style="cursor:pointer;">
<td class="Srow"></td>
<td colspan="5" class="litrow"><asp:Literal ID="litNotes" runat="server"></asp:Literal></td>
</tr>
<tr style="height:10px;">
<td colspan="10" class="seprow">.</td>
</tr>
</asp:LinkButton>
</ItemTemplate>