Monday, March 26, 2012

Tables Asp.Net Visible property

Hi guys,

im having serious trouble with my tables in asp.net. i inherited a
system that allowed me to set my tables visble property to true and
false. When i try and create a table using html i do not have that
property.

does anyone know of a different way to create a table ??

the system i inherited with the visible property in the tables uses
the following in the top part of the code -
system.web.ui.htmlcontrols.htmltable
is this the reason for the extra property ??

my tables dont seem to have this in the code.

thanks

CGHy,
put an asp:panel around your table and you can set the visible property.

<asp:panel id="pan" runat="server">
<table>
<tr>
<td></td>
</tr>
</table>
</asp:panel
Greez
The Filzmeister

Colin Graham schrieb:
> Hi guys,
> im having serious trouble with my tables in asp.net. i inherited a
> system that allowed me to set my tables visble property to true and
> false. When i try and create a table using html i do not have that
> property.
> does anyone know of a different way to create a table ??
> the system i inherited with the visible property in the tables uses
> the following in the top part of the code -
> system.web.ui.htmlcontrols.htmltable
> is this the reason for the extra property ??
> my tables dont seem to have this in the code.
> thanks
> CG
You can operate with css rules display and visibility.

Eliyahu

"Colin Graham" <csgraham74@.hotmail.com> wrote in message
news:ee261922.0504210322.483c2912@.posting.google.c om...
> Hi guys,
> im having serious trouble with my tables in asp.net. i inherited a
> system that allowed me to set my tables visble property to true and
> false. When i try and create a table using html i do not have that
> property.
> does anyone know of a different way to create a table ??
> the system i inherited with the visible property in the tables uses
> the following in the top part of the code -
> system.web.ui.htmlcontrols.htmltable
> is this the reason for the extra property ??
> my tables dont seem to have this in the code.
> thanks
> CG
Christian Filzwieser wrote:
> Hy,
> put an asp:panel around your table and you can set the visible
property.
> <asp:panel id="pan" runat="server">
> <table>
> <tr>
> <td></td>
> </tr>
> </table>
> </asp:panel
<asp:PlaceHolder> may be a better choice because it doesn't generate
any contents itself.

0 comments:

Post a Comment