Hide HTML section from code behind

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,
 
S

Siva M

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,
 

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,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top