[英]Can we make the content in div tags invisible on Page Load
<div class="reusableBlueContent">
<table cellpadding="0" cellspacing="0" style="width: 500px;">
<tr>
<td colspan="6" style="height: 24px;">
<h3 style="text-align: left; height: 23px;">
Package Recap</h3>
</td>
</tr>
I have something like this. 我有这样的东西。 I want to make "Package Recap" invisible when the page is loaded. 加载页面时,我想使“ Package Recap”不可见。 It is in the . 它在。 Please help me out. 请帮帮我。 Thanks! 谢谢!
in your .aspx markup: 在您的.aspx标记中:
<div id="DivServerControl" runat="server" class="reusableBlueContent"> some stuff </div>
in your code behind: 在后面的代码中:
protected override void OnLoad(Object sender)
{
DivServerControl.Visible = false;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.