Click here to Skip to main content
16,017,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
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 solution

Hi,

try like this,

give id for the "td" element and add runat = "server" attribute.
ASP.NET
<table><tbody><tr><td id="tdid" runat="server" visible="false"></td></tr></tbody></table>

then, from code behind
C#
tdid.visible = true;

hope it helps.
 
Share this answer
 
Comments
shindesb 2-Oct-12 6:23am    
Thanks,
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900