終於找到一個ASP
建立一個WEB工程
<!DOCTYPE html PUBLIC
<html xmlns=
<head>
<title>無標題頁</title>
<script language=
function SetPorgressBar(pos)
{
//設置進度條居中
var screenHeight = window[
var screenWidth = window[
ProgressBarSide
ProgressBarSide
ProgressBarSide
ProgressBarSide
ProgressBarSide
//設置進度條百分比
ProgressBar
ProgressText
}
//完成後隱藏進度條
function SetCompleted()
{
ProgressBarSide
}
</script>
</head>
<body>
<div id=
<div id=
<div id=
</div>
</body>
</html>
後台代碼
using System;
using System
using System
using System
using System
using System
using System
using System
using System
using System
using System
public partial class _Default : System
{
private void beginProgress()
{
//根據顯示進度條界面
string templateFileName = Path
StreamReader reader = new StreamReader(@templateFileName
string html = reader
reader
Response
Response
}
private void setProgress(int percent)
{
string jsBlock =
Response
Response
}
private void finishProgress()
{
string jsBlock =
Response
Response
}
private void Page_Load(object sender
{
beginProgress();
for (int i =
{
setProgress(i);
//此處用線程休眠代替實際的操作
System
}
finishProgress();
}
}
From:http://tw.wingwit.com/Article/program/net/201311/11915.html