How to hide table?

  • Thread starter Thread starter Miguel Dias Moura
  • Start date Start date
M

Miguel Dias Moura

Hello,

( using ASP.net / VB)

i have a table with 2 dynamic text taken from a database. I want to hide the
table and its entire contents when the dynamic text <%#
dataSetBibliotecas.FieldValue("Titulo", Container) %> is empty.

<table width="450" border="0" cellpadding="0" cellspacing="2">
<tr>
<td><%# dataSetBibliotecas.FieldValue("Titulo", Container) %></td>
<td><a href="http://<%# dataSetBibliotecas.FieldValue("Link", Container)
%>">http://<%# dataSetBibliotecas.FieldValue("Link", Container) %></a></td>
</tr>
</table>

How can i do this?

Thank You,
Miguel
 
Hi,

<table width="450" border="0" cellpadding="0" cellspacing="2">
specify following attributes for your table
id="tableOne" runat="server"

in the pageload hide it using the following code

tableOne.Visible = false;
HTH
Regards
Ashish M Bhonkiya
 
Back
Top