分类: 系统运维
2007-08-27 10:23:12
1
3)然后在页面上拖放一个UpdatePanelAnimationExtender,用于控制动画效果。
代码如下:
<%-- Store the original height of the panel --%>
<%-- Disable all the controls --%>
<%-- Do each of the selected effects --%>
<%-- Do each of the selected effects --%>
<%-- Get the stored height --%>
<%-- Enable all the controls --%>
4)对Page_load和"btnUpdate"按钮添加事件处理。
代码如下:
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
this.Label1.Text = DateTime.Now.ToString();
}
}
protected void btnUpdate_Click(object sender, EventArgs e)
{
this.Label1.Text = DateTime.Now.ToString();
}
5)按下CTRL+F5,在浏览器中查看效果。
效果图如下: