Wednesday, 20 March 2013

ASP.NET: Table: Hide the table contents

You cannot really hide table and its content (I do not know yet). You can put the inside a asp.net panel control and then if you hide the panel it will hide the table and its content as well.

In the html aspx page:
<asp:Panel ID="pagerPanel" runat="server">
<table id="pagerTable" cellpadding="0" cellspacing="5px" class="pagerTable">
</table>
</asp:Panel>


In the code file:
pagerPanel.Visible = false;

No comments:

Post a Comment