This is a migrated thread and some comments may be shown as answers.

table in LinkButton

1 Answer 65 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Matthias
Top achievements
Rank 1
Matthias asked on 26 Jan 2011, 08:47 AM
Hi all!

I found a strange behavior here in IE (Works fine with Chrome). When putting a table inside a LinkButton, the row selection doesn't work inside the table("inside table"), but clicking outside the table works ("outside table")..

Code in ItemTemplate:
<asp:LinkButton ID="LinkButton3" D="SelectButton" runat="server" CommandName="Select" CausesValidation="False">
    outside table
    <table>
        <tr>
            <td>inside</td>
            <td>table </td>
        </tr>
    </table>
</asp:LinkButton>
Does anybody have a solution or a workaround?

Thanks!
Greetings, Matthias

1 Answer, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 28 Jan 2011, 12:00 PM
Hello Matthias,

Inserting table into the anchor element is not a valid scenario. The table is a block element, and the link is an inline element, so you can't put a table in a link. For more information please check out the following link:

http://stackoverflow.com/questions/3267411/why-doesnt-a-linkbutton-work-with-a-table-as-its-content

Greetings,
Radoslav
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
ListView
Asked by
Matthias
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Share this question
or