Hi TS,
From your description, you're using some ASP.NET Table control in aspx
page(is it asp:Table or html table control?) and you found that the
<colgroupdefined in table will not display after you've ever set Table
control's Visible to "false" ,correct?
As for the <colgroupsince it is html snippet, how did you insert into the
server control? Are you using the <asp:Tableserver control or <table
runat="server" html server control? Based on my experience, it is
recommended to use html server control if you want to deal with some pure
html fragment or some html specific attrribute or style settings on the
control. Also, for "Visible" property, as "Eliyahu" said, if you set server
control's "Visible" to "false", ASP.NET won't render it in the output html.
So I suggest you consider use the css style "display" attribute to hide a
control. e.g.
===============
<table id="tb1" runat="server" style="display:none">
<colgroup></colgroup>
<colgroup style="background-color:Yellow"></colgroup>
<tr>
<td>aaaa</td>
<td>bbbb</td>
</tr>
<tr>
<td>cccc</td>
<td>dddd</td>
</tr>
</table>
===============
You can set html table control's "display" style to "none" and change it in
either server-side ASP.NET code or client-side javascript code.
Of course, if convenient, you can post some code snippet so that we can
also have a look into it. If there is anything we missed, please feel free
to post here also.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.