日期:2014-05-17 浏览次数:20510 次
<form id="form1" runat="server">
<div>
<asp:ScriptManager runat="server" ID="ddd"></asp:ScriptManager>
<asp:UpdatePanel UpdateMode="Conditional" runat="server" ID="ss">
<ContentTemplate>
<asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" />
</ContentTemplate>
</asp:UpdatePanel>
<div runat="server" style="display:none" id="div1"> ddddd</div>
</div>
</form>
后台
protected void Button1_Click(object sender, EventArgs e)
{
div1.Style["display"] = "block";
}