Hi,
I have a html table inside a repeater control. There is a row in the table that I need to toggle the visibility of. I have set the <tr> to runat="server" and have given it the ID of "trSwitch".
In the code behind, I have the following:
HtmlTableRow trSwitch = (HtmlTableRow)Repeater1.FindControl("trSwitch");
trSwitch.Visible = true;
But when I run the page I get a 'Object reference not set to an instance of an object"...
How can I successfully find the <tr> in the repeater?
Thanks in advance.