FindControl table cell

Posted by rlb.usa on Stack Overflow See other posts from Stack Overflow or by rlb.usa
Published on 2010-06-01T22:36:19Z Indexed on 2010/06/01 22:43 UTC
Read the original article Hit count: 216

Filed under:
|
|

I want to reference a table cell via it's string ID in my code like this FindControl("tdAnswer_a") because I am manipulating string ID names. The ASPX code looks like this :

<table>...<td ID="tdAnswer_a" runat="server" visible="true">

But FindControl is not able to find the table cell. When I reference it by ID like this : tdAnswer_a.Visible = true; in my codebehind, it has no problems. (This is not part of a repeater or gridview).

How can I FindControl my table cells via string ID names?

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET