asp net请等待页面帮助我 [英] asp net please wait page help mee

查看:81
本文介绍了asp net请等待页面帮助我的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有一个表单,点击提交按钮后我想显示请等待页面可以任何人帮我一个例子。 />






问候,

Rahul

解决方案

建立更好的等待页面 [ ^ ]



实施 - waiting-pages-in-asp.net/ [ ^ ]


请从下面的链接中获取解决方案。



锁ASP.NET页面和显示动画图像,等待长时间的回发 [ ^ ]


您好,要在按钮上显示请稍候文字单击,您可以使用AJAX UpdateProgress控件。代码如下:

 <   asp: ScriptManager     ID   =  ScriptManager1    runat   =  server >  <   / asp:ScriptManager  >  
< asp:UpdateProgress ID = UpdateProgress1 DisplayAfter = 10 runat = server AssociatedUpdatePanelID = upTest >
< ProgressTemplate < span class =code-keyword>>
< div class = divWaiting >
< asp:标签 ID = lblWait CssClass = waitText runat = < span class =code-keyword> server 文本 = 请稍候...... > < / asp:标签 > < / div >
< / ProgressTemplate >
< / asp:UpdateProgress >



将asp.net按钮放在更新面板中,并设置更新面板的属性,如下所示。

 <   asp:UpdatePanel     ID   =  upTest    ChildrenAsTriggers   =  true    UpdateMode   = 条件    runat   =  server >  
< ContentTemplate >
< asp:按钮 ID = btnSubmit Text = 提交 < span class =code-attribute> OnClick = btnSubmit_Click runat = server / >
< / ContentTemplate >
< / asp:UpdatePanel >



要添加到此,您可以添加以下内容css in< head>< / head>显示请等待时显示背景的页面。

 <   head  >  <   style     type   =   text / css >  
.divWaiting
{
仓位:绝对; background-color:#FAFAFA; z-index:2147483647!important;不透明度:0.8;
溢出:隐藏; text-align:center;顶部:0;左:0;身高:100%;宽度:100%; }
.waitText
{
position:relative;最高:45%;颜色:黑色; font-size:26px;
font-weight:bold; background-color:#FAFAFA; }
< / style > < / head >



要下载Ajax Control Toolkit并知道如何将Ajax Control Toolkit添加到Visual Studio工具箱,请访问 http://www.asp.net/ajaxlibrary/act.ashx


hi,

I have a form in that after clicking the submit button i want show the please wait page can any one help me with an example.



Regards,
Rahul

解决方案

Building a Better Wait Page[^]

implementing-waiting-pages-in-asp.net/[^]


Please take solution from below link.

Lock ASP.NET Page and Show Animated Image While Waiting for a Long Post-Back[^]


Hi, To show "Please wait" text on button click, you can use AJAX UpdateProgress control. The code is given below.

<asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager>
<asp:UpdateProgress ID="UpdateProgress1" DisplayAfter="10" runat="server" AssociatedUpdatePanelID="upTest">
<ProgressTemplate>
     <div class="divWaiting">
         <asp:Label ID="lblWait" CssClass="waitText" runat="server" Text=" Please wait..."></asp:Label></div>
 </ProgressTemplate>
</asp:UpdateProgress>


Place the asp.net button in update panel and set the attributes of update panel as given below.

<asp:UpdatePanel ID="upTest" ChildrenAsTriggers="true" UpdateMode="Conditional" runat="server">
    <ContentTemplate>
         <asp:Button ID="btnSubmit" Text="Submit" OnClick="btnSubmit_Click" runat="server" />
     </ContentTemplate>
</asp:UpdatePanel>


To add on to this, you can add the below css in <head></head> of your page for making the background inactive while "Please wait" is shown.

<head><style type="text/css">
.divWaiting
{
   position: absolute; background-color: #FAFAFA; z-index: 2147483647 !important; opacity: 0.8;
   overflow: hidden; text-align: center; top: 0; left: 0; height: 100%;  width: 100%;      }
.waitText
 {
    position: relative; top: 45%; color: Black; font-size: 26px;
    font-weight: bold; background-color: #FAFAFA;   }
</style></head>


To download Ajax Control Toolkit and know how to add the Ajax Control Toolkit to the Visual Studio Toolbox, please visit http://www.asp.net/ajaxlibrary/act.ashx


这篇关于asp net请等待页面帮助我的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆