All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
Spring集成XFire开发WebService_.net资料_编程技术
Sql,Server2005_mssql学习_编程技术
SQL数据库高级教程:学习 SQL IN_[SQL Server教程]
取得文件扩展名方法_[PHP教程]
新瓶旧酒ASP.NET,AJAX(6),-,客户端脚本编程(Sys.WebForms命名空间下的类)_[Asp.Net教程]
C#中ArrayList.CopyTo
visual c++中ActiveX控件创建实例
从,PHP,迁移到,ASP.NET(1)_[Asp.Net教程]
XML加ASP实现网页“本地化”_[XML教程]
ASP.NET状态管理,APPlication,Session,Cookie和ViewStat用法_[Asp.Net教程]
Reading number is top 10 pictures
这还能睡得着?
The hot big eye big breast beauty3
29 the belle stars after bath figure2
乳娘帕梅拉安德森2
PengLiYuan lady for the world health organization fight TB and AIDS goodwill ambassador
日本小萝莉2
中国女孩大胆自拍,显露完美身材4
代沟,真好
Average female college students3
玩手机对身体不好
Download software ranking
豪门浪荡史
在线棋牌游戏3.05版
apache-tomcat-6.0.33
Unix video tutorial17
变速齿轮3.26
尖东毒玫瑰B
Proficient in JavaScript
WebService在.NET中的实战应用教学视频 → 第4集
Boxer's Top ten classic battle2
Tram sex maniac 2 (H) rar bag6
delv published in(发表于) 2013/12/31 6:41:57 Edit(编辑)
用javascript实现(页面正在加载的效果)_JavaScript技术_编程技术

用javascript实现(页面正在加载的效果)_JavaScript技术_编程技术

用javascript实现(页面正在加载的效果)_JavaScript技术_编程技术-你的首页-uuhomepage.com







代码文件:




using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Threading;
namespace AjaxTest
{
/**////


/// WebForm2 的摘要说明。
///

public class WebForm2 : System.Web.UI.Page
{
protected System.Web.UI.WebControls.Button Button1;
protected System.Web.UI.WebControls.Label Label1;

private void Page_Load(object sender, System.EventArgs e)
{
Response.Write("

");
Response.Write("_");
Response.Write("

");
Response.Write("");
Response.Write("");
Response.Flush();//这一句是最关键的
}




private void Button1_Click(object sender, System.EventArgs e)
{
//当点击按钮时,假设请求需要较长时间(这里设置为10秒)
System.Threading.Thread.Sleep(10000);
this.Label1.Text = "终于加载完成啦";
}




Web 窗体设计器生成的代码#region Web 窗体设计器生成的代码
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: 该调用是 ASP.NET Web 窗体设计器所必需的。
//
InitializeComponent();
base.OnInit(e);
}

/**////


/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
///

private void InitializeComponent()
{
this.Button1.Click += new System.EventHandler(this.Button1_Click);
this.Load += new System.EventHandler(this.Page_Load);




}
#endregion





}
}




页面文件:




<%@ Page language="c#" Codebehind="WebForm2.aspx.cs" AutoEventWireup="false" Inherits="AjaxTest.WebForm2" %>



WebForm2



http://schemas.microsoft.com/intellisense/ie5">





Text="Button">
Label
























添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.