手机
当前位置:查字典教程网 >编程开发 >asp.net教程 >Asp.net ajax实现任务提示页面的简单代码
Asp.net ajax实现任务提示页面的简单代码
摘要:复制代码代码如下:voidWaitFiveSeconds(objecto,EventArgse){System.Threading.Thre...

复制代码 代码如下:

<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">

void WaitFiveSeconds(object o, EventArgs e)

{

System.Threading.Thread.Sleep(5000);

Label1.Text = DateTime.Now.ToLongTimeString( );

}

</script>

<html xmlns="http://www.w3.org/1999/xhtml">

<head id="Head1" runat="server">

<title>ASP.NET AJAX</title>

</head>

<body>

<form id="form1" runat="server">

<asp:ScriptManager ID="ScriptManager1" runat="server" />

<asp:UpdatePanel ID="UpdatePanel1" runat="server">

<ContentTemplate>

<asp:Button ID="Button1" runat="server" Text="Do something" /><br />

<asp:Label ID="Label1" runat="server" />

</ContentTemplate>

</asp:UpdatePanel>

<asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">

<ProgressTemplate>

<div>

Loading, please stand by ...

</div>

</ProgressTemplate>

</asp:UpdateProgress>

</form>

</body>

</html>

【Asp.net ajax实现任务提示页面的简单代码】相关文章:

asp.net使用jquery实现搜索框默认提示功能

asp.net下常用的加密算法MD5、SHA-1应用代码

asp.net 继承自Page实现统一页面验证与错误处理

asp.net下定制日期输出格式的代码

asp.net(c#)利用构造器链的代码

Asp.Net类库中发送电子邮件的代码

asp.net保存远程图片的代码

Asp.net 5种页面转向方法

asp.net实现C#绘制太极图的方法

asp.net中利用ashx实现图片防盗链的原理分析

精品推荐
分类导航