进度条未在更新面板中显示用户回发触发和异步触发但没有用 [英] progress bar not showing in update panel user post back trigger and asychronous trigger but no use
问题描述
< asp:UpdatePanel ID =upTestChildrenAsTriggers =trueUpdateMode =条件runat =server>
< contenttemplate>
< asp:Button ID =btnSubmitrunat =serverText =Get Quick QuoteOnClick = btnSubmit_Click
ValidationGroup =requiredWidth =150pxCssClass =saveUseSubmitBehavior =false/>
< asp:UpdateProgress ID =UpdateProgress1DisplayAfter =10runat =serverAssociatedUpdatePanelID =upTest>
< progresstemplate>
Hi,
<asp:UpdatePanel ID="upTest" ChildrenAsTriggers="true" UpdateMode="Conditional" runat="server">
<contenttemplate>
<asp:Button ID="btnSubmit" runat="server" Text="Get Quick Quote" OnClick="btnSubmit_Click"
ValidationGroup="required" Width="150px" CssClass="save" UseSubmitBehavior="false" />
<asp:UpdateProgress ID="UpdateProgress1" DisplayAfter="10" runat="server" AssociatedUpdatePanelID="upTest">
<progresstemplate>
< asp:Image runat =serverID =waitimgImageUrl =〜/ images / pleas eWaitImage.gifCssClass =waitText/>
<asp:Image runat="server" ID="waitimg" ImageUrl="~/images/pleaseWaitImage.gif" CssClass="waitText"/>
这里发生的事情是我正在验证来自代码的代码,如果验证错误在代码后面找到但是它没有显示在前端我使用触发器也是post和aschronous触发器没有使用我怎么做这个请任何人帮助我.......
问候,
naveen
here wat happening is i am validating the code from code behind if validation error is find in code behind but its not showing in front end i used triggers also both the post and aschronous triggers no use how an i achive this could any one help me please.......
regards,
naveen
推荐答案
在验证块结束之前的代码隐藏中并返回到webform添加以下行
In codebehind before validation block ends and return to webform add following line
System.Threading.Thread.Sleep(3000);//3000 means 3 seconds
http://csharpdotnetfreak.blogspot.com/2012/07/updateprogress-control-example-in-aspnet.html [ ^ ]
点击链接..
http://csharpdotnetfreak.blogspot.com/2012/07/updateprogress-control-example-in-aspnet.html[^]
follow the link..
这篇关于进度条未在更新面板中显示用户回发触发和异步触发但没有用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!