Linkbutton in Safari and Firefox

Joined
Jul 28, 2010
Messages
1
Reaction score
0
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...

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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top