Click here to Skip to main content
12,550,731 members (32,131 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# ASP.NET
I am using master page and content page in my project but in some case I won't to hide
td tag of table which is on content page using master page .
can you please tell me how can I do this...
Posted 1-Oct-12 23:48pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1


try like this,

give id for the "td" element and add runat = "server" attribute.
<table><tbody><tr><td id="tdid" runat="server" visible="false"></td></tr></tbody></table>
then, from code behind
tdid.visible = true;
hope it helps.
shital shinde 2-Oct-12 6:23am
I try this but this done on content page,
I wan't to hide that td using master page so.. .

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.161021.1 | Last Updated 2 Oct 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100