Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6324517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:43:08+00:00 2026-05-24T16:43:08+00:00

I have a master page with a public ShowWaitingDialog property. When set to true,

  • 0

I have a master page with a public ShowWaitingDialog property. When set to true, I simply show a modal “Please wait…” overlay when the form is submitted. This is done by registering a client-side function called ShowWaitingDialog() using the following:

Page.ClientScript.RegisterOnSubmitStatement(Page.GetType(), "ShowWaitingDialog", "ShowWaitingDialog()");

As a side note, I also have a function the coder can use if linking to a page that may take a while to load:

public void AttachWaitingDialog(HyperLink HyperLinkControl){
if (this.ShowWaitingDialog)
    HyperLinkControl.Attributes.Add("onclick", "ShowWaitingDialog();");}

These work just fine until an UpdatePanel is introduced onto the page. The dialog is correctly shown when a postback happens inside an update panel. However, it never goes away when the request is complete. I was hoping there was some sort of global complete event that the Microsoft ajax framework uses when making update panels requests. That way I could close my modal overflow when executed. Is there?

I haven’t tried it yet, but I guess I could use the ScriptManager to always register a startup script which hides the modal overlay, but I was wondering if there was another way.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T16:43:10+00:00Added an answer on May 24, 2026 at 4:43 pm

    You can use Javascript and use the PageRequestManager clientside api provided by Microsoft Ajax framework.

    <script type='text/javascript'>
    
    var pageMgr = Sys.WebForms.PageRequestManager.getInstance();
    
    pageMgr.add_beginRequest(BeforeAjaxRequest);
    pageMgr.add_endRequest(AfterAjaxRequest);
    
    function BeforeAjaxRequest(sender, args)
    {
     alert('MyReqeustStart');
    }
    
    function AfterAjaxRequest(sender, args)
    {
     alert('MyReqeustEnd');
    }
    
    </script>
    

    More Details here:
    http://msdn.microsoft.com/en-us/library/bb311028.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Master Page with nested pages in ASP.NET. Fairly simply I want
I have a HiddenField on my master page, and its value is set in
I have the following directive on top of my master page <!DOCTYPE html PUBLIC
I have a master page with the following code: public partial class MasterPage :
Please see the image below As you can see I have a master page
I have a main master page named Site.master <%@ Master Language=C# AutoEventWireup=true CodeBehind=Site.master.cs Inherits=Fancybox.SiteMaster
I have a master page: <%@ Master Language=C# AutoEventWireup=true Codefile=AdminMaster.master.cs Inherits=AlphaPackSite.MasterPages.AdminMaster %> Then I
I have a master page called SampleMaster.master and this page contains a Repeater control
I have a master page with Header, Menu, Content and Footer panes in my
I have a master page with tabs. The tabs are defined by the following

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.