Another alternative could be inserting javascript, if you don want to go with RUNAT="SERVER" for html table.
Whenever I want some client code(java script kind of stuff), I prefer to use wonderful ASP.NET control called: <ASP:LITERAL> jus to render client side script, Jus think over it.
Like,put <asp:Literal ID="litTest" Runat="server"></asp:Liter
In the corrosponding codebehind file, assign client side script ( here hiding/showing table ) like this:
//To hide table with id='tblTest' set display attribte to 'none' and to show set it to 'inline'
litTest.Text="<script language='javascript'>docu
Regards.
maulikCE.
Main Topics
Browse All Topics





by: ahmedrashidPosted on 2004-12-09 at 21:01:51ID: 12789910
first of all you need to make the table a Server Control like this:
<TABLE id="Table1" name="Table1" runat="server">
<TR>
<TD></TD>
<TD></TD>
<TD></TD>
</TR>
</TABLE>
then in the code behind file, you can do the following:
Table1.Visible = false;
This is C# code but Im sure the VB code will be quite similar to this.
Hope this helps.