国产99久久精品_欧美日本韩国一区二区_激情小说综合网_欧美一级二级视频_午夜av电影_日本久久精品视频

最新文章專題視頻專題問答1問答10問答100問答1000問答2000關(guān)鍵字專題1關(guān)鍵字專題50關(guān)鍵字專題500關(guān)鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關(guān)鍵字專題關(guān)鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
問答文章1 問答文章501 問答文章1001 問答文章1501 問答文章2001 問答文章2501 問答文章3001 問答文章3501 問答文章4001 問答文章4501 問答文章5001 問答文章5501 問答文章6001 問答文章6501 問答文章7001 問答文章7501 問答文章8001 問答文章8501 問答文章9001 問答文章9501
當(dāng)前位置: 首頁 - 科技 - 知識百科 - 正文

asp.net UpdaeProgress的簡單用法

來源:懂視網(wǎng) 責(zé)編:小采 時間:2020-11-27 22:44:58
文檔

asp.net UpdaeProgress的簡單用法

asp.net UpdaeProgress的簡單用法:UpdateProgress 應(yīng)該就是更新進(jìn)度 的意思吧。 使用方法: 1.添加一個ScriptManager控件 2.添加一個UpdatePanel控件 3.添加一個UpdateProgress控件 設(shè)置UpdateProgress控件的AssociatedUpdatePanelID為第2步 UpdatePan
推薦度:
導(dǎo)讀asp.net UpdaeProgress的簡單用法:UpdateProgress 應(yīng)該就是更新進(jìn)度 的意思吧。 使用方法: 1.添加一個ScriptManager控件 2.添加一個UpdatePanel控件 3.添加一個UpdateProgress控件 設(shè)置UpdateProgress控件的AssociatedUpdatePanelID為第2步 UpdatePan

UpdateProgress 應(yīng)該就是“更新進(jìn)度” 的意思吧。
使用方法:
1.添加一個ScriptManager控件
2.添加一個UpdatePanel控件
3.添加一個UpdateProgress控件
設(shè)置UpdateProgress控件的AssociatedUpdatePanelID為第2步 UpdatePanel的ID(如果頁面中有多個UpdatePanel則,只有相應(yīng)updatePanel關(guān)聯(lián)的updateProgress顯示)
測試?yán)哟a: 
代碼如下:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Untitled Page</title>
<style type="text/css">
#UpdatePanel1, #UpdatePanel2, #UpdateProgress1 {
border-right: gray 1px solid; border-top: gray 1px solid;
border-left: gray 1px solid; border-bottom: gray 1px solid;
}
#UpdatePanel1, #UpdatePanel2 {
width:200px; height:200px; position: relative;
float: left; margin-left: 10px; margin-top: 10px;
}
#UpdateProgress3 {
width: 200px; background-color: #FFC080;
bottom: 0%; left: 0px; position: absolute;
}
#UpdateProgress2 {
width: 200px; background-color: #FFC080;
bottom: 0%; left: 0px; position: absolute;
}
</style>
</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" OnClick="Button1_Click1" Text="Button" />
<asp:Label ID="Label1" runat="server" Text="顯示數(shù)據(jù)"></asp:Label>
<asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
<ProgressTemplate>
<div id="progress"><img src="img/1.gif" />
等待中...
</div>
</ProgressTemplate>
</asp:UpdateProgress>
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
<asp:Button ID="Button2" runat="server" OnClick="Button2_Click1" Text="Button" /><br />
<br />
<asp:Label ID="Label2" runat="server" Text="顯示數(shù)據(jù)"></asp:Label>
<asp:UpdateProgress ID="UpdateProgress2" runat="server" AssociatedUpdatePanelID="UpdatePanel2">
<ProgressTemplate>
更新數(shù)據(jù)中....
</ProgressTemplate>
</asp:UpdateProgress>
</ContentTemplate>
</asp:UpdatePanel>
</form>
</body>
</html>

c#代碼:
代碼如下:
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Threading;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click1(object sender, EventArgs e)
{
System.Threading.Thread.Sleep(3000);
Label1.Text = "刷新時間:" + DateTime.Now.ToString();
}
protected void Button2_Click1(object sender, EventArgs e)
{
System.Threading.Thread.Sleep(3000);
Label2.Text = "刷新時間:" + DateTime.Now.ToString();
}
}

其中,頁面代碼中的css是msdn上的例子。UpdatePanel1中的UpdateProgress1顯示一張動態(tài)gif圖片
還往大哥大姐們多多指教。

聲明:本網(wǎng)頁內(nèi)容旨在傳播知識,若有侵權(quán)等問題請及時與本網(wǎng)聯(lián)系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

文檔

asp.net UpdaeProgress的簡單用法

asp.net UpdaeProgress的簡單用法:UpdateProgress 應(yīng)該就是更新進(jìn)度 的意思吧。 使用方法: 1.添加一個ScriptManager控件 2.添加一個UpdatePanel控件 3.添加一個UpdateProgress控件 設(shè)置UpdateProgress控件的AssociatedUpdatePanelID為第2步 UpdatePan
推薦度:
標(biāo)簽: 使用 用法 使用方法
  • 熱門焦點(diǎn)

最新推薦

猜你喜歡

熱門推薦

專題
Top
主站蜘蛛池模板: 亚洲va欧美ⅴa国产va影院 | 国产欧美一区二区精品性色 | 麻豆精品国产 | 亚洲第一页在线观看 | 国产成人精品一区二区视频 | 91在线看片| 青青热久久综合网伊人 | 亚洲欧美日韩精品高清 | 国产精品免费播放 | 国产精品视频大全 | 久久精品最新免费国产成人 | 91在线精品亚洲一区二区 | 国产午夜电影在线观看 | 久久婷婷影院 | 日韩欧美中文 | 在线视频日韩 | 国产成人深夜福利短视频99 | 美女视频黄a视频全免费应用 | 亚洲精品制服丝袜二区 | 国产精品一区欧美日韩制服 | 国产淫语对白在线 | 国产成人综合久久精品亚洲 | 亚洲一区日韩 | 午夜看一级特黄a大片黑 | 边做边爱边吃奶叫床的视频 | 日韩在线网址 | 欧美国产高清 | 黄网站免费观看 | 日韩欧美在线综合网高清 | a级免费在线观看 | 精品国产欧美一区二区 | 国产精品久久久久久久9999 | 欧美1区二区三区公司 | 国产一区二区福利久久 | 国产精品一区二区三区四区 | 国产一区亚洲二区三区 | 久久精品一区二区三区不卡牛牛 | 一级特黄女毛毛片 | 国产免费黄色 | 久久无码精品一区二区三区 | 国内精品伊人久久久久妇 |