ajax控件

a6965921 2010-01-10 07:08:10
body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<div>
<div class="asdf">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:LinkButton ID="LinkButton1" runat="server">登陆</asp:LinkButton>
<asp:Panel ID="Panel1" runat="server" Height="50px" Width="125px">
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
</asp:Panel>
<cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="LinkButton1" PopupControlID="Panel1" DropShadow="true" Drag="true" >
</cc1:ModalPopupExtender>
</ContentTemplate>
</asp:UpdatePanel>


</div>

</div>
</form>
</body>
启动的时候 panel里的内容不隐藏
...全文
54 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
xray2005 2010-01-10
  • 打赏
  • 举报
回复
不晓得你想隐藏还是不隐藏:

后台代码:
隐藏你可以:

Panel1.Style["display"]="none";


不隐藏你可以:

Panel1.Style["display"]="block";

111,120

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • AIGC Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧