Click here to Skip to main content
13,138,694 members (49,124 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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 |
Web01 | 2.8.170915.1 | Last Updated 2 Oct 2012
Copyright © CodeProject, 1999-2017
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