How to hide table?

  • Thread starter Miguel Dias Moura
  • 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
 
A

Ashish M Bhonkiya

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
 

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,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top