Hide HTML section from code behind

  • Thread starter Thread starter Gabriel
  • Start date Start date
G

Gabriel

Hi,

I have a HTML like this
<table>
<tr>
<td>...</td>
<td>...</td>
</tr>
<tr id="toHide">
<td>...</td>
<td>...</td>
</tr>
</table>

From the code behind (MyPage.aspx.cs) hide the "toHide" section how can I do
that ?

Thanks,
 
Add runat="server" to that row and from the code-behind do toHide.Visible =
false;

Hi,

I have a HTML like this
<table>
<tr>
<td>...</td>
<td>...</td>
</tr>
<tr id="toHide">
<td>...</td>
<td>...</td>
</tr>
</table>

From the code behind (MyPage.aspx.cs) hide the "toHide" section how can I do
that ?

Thanks,
 
Back
Top