隐藏内容页表的td. [英] Hide content page table's td .

查看:64
本文介绍了隐藏内容页表的td.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我在项目中使用母版页和内容页,但在某些情况下,我不会隐藏
使用母版页在内容页上的表的td标签.
能否请您告诉我我该怎么做...

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...

推荐答案



尝试这样,

给出"td"元素的ID并添加runat = "server"属性.
Hi,

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.


这篇关于隐藏内容页表的td.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆