I have an update progress control, the control works fine, but I have seen when I load the application, I can see the ModalPopupextender for few seconds and then it goes away when the page loads. Is their anyway, the ModalPopUpExtender does not show on the
page when the page loads, it only shows when it is waiting. below is my entire code
anjaliagarwa...
Member
705 Points
624 Posts
modal pop up extender shows on the page for few minutes
Feb 24, 2012 09:34 PM|LINK
Hi All,
I have an update progress control, the control works fine, but I have seen when I load the application, I can see the ModalPopupextender for few seconds and then it goes away when the page loads. Is their anyway, the ModalPopUpExtender does not show on the page when the page loads, it only shows when it is waiting. below is my entire code
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %> <script type="text/javascript" language="javascript"> var ModalProgress = '<%= ModalProgress.ClientID %>'; Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(beginReq); Sys.WebForms.PageRequestManager.getInstance().add_endRequest(endReq); function beginReq(sender, args) { // shows the Popup $find(ModalProgress).show(); } function endReq(sender, args) { // shows the Popup $find(ModalProgress).hide(); } </script> <asp:Panel ID="panelUpdateProgress" runat="server" CssClass="updateProgress"> <asp:UpdateProgress ID="UpdateProg1" DisplayAfter="0" runat="server"> <ProgressTemplate> <div style="position: relative; top: 30%; text-align: center;"> <img src="../Images/progress.gif" style="vertical-align: middle" alt="Processing" /> Processing ... </div> </ProgressTemplate> </asp:UpdateProgress> </asp:Panel> <asp:ModalPopupExtender ID="ModalProgress" runat="server" TargetControlID="panelUpdateProgress" BackgroundCssClass="modalBackground" PopupControlID="panelUpdateProgress" />any help will be appreciated
Thanks
anjaliagarwa...
Member
705 Points
624 Posts
Re: modal pop up extender shows on the page for few minutes
Feb 24, 2012 10:27 PM|LINK
I hink I found the answer. I will try it though
http://mattberseth.com/blog/2007/08/how_to_stop_the_modalpopup_fli.html
MetalAsp.Net
All-Star
112231 Points
18268 Posts
Moderator
Re: modal pop up extender shows on the page for few minutes
Feb 24, 2012 10:33 PM|LINK
chetan.sarod...
All-Star
65839 Points
11163 Posts
Re: modal pop up extender shows on the page for few minutes
Feb 27, 2012 02:13 AM|LINK
Hi,
Please refer to this thread which has a similar request to yours here: http://forums.asp.net/p/1273063/2421296.aspx#2421296
http://reflexangle.blogspot.in/2008/09/modal-popup-extender-and-flicker-issues.html
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.