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 8193221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T04:24:46+00:00 2026-06-07T04:24:46+00:00

I have an Intranet ASP.NET application which is sometimes slow to respond. My requirement

  • 0

I have an Intranet ASP.NET application which is sometimes slow to respond. My requirement is to prevent double submit, and ideally provide feedback to the user that the form has already been submitted.

Examples I’ve found show how to disable a submit button, but that’s not enough, as in my app the submit can happen:

  • From a submit button.
  • From any control with AutoPostBack = true (which submits using javascript AFAIK).
  • From either of the above within an UpdatePanel – in which case as I understand it, the POST is done using AJAX, and I would need to re-enable when the AJAX call is complete.

I’m thinking of something like displaying an overlay / modal popup, perhaps with an animated progress image which would be displayed while submitting. And in the case of an UpdatePanel, hidden when the AJAX call completes.

Does anyone have a sample that can be easily integrated into ASP.NET pages as above? Or indicate what events I would need to hook into to display / hide the overlay.

UPDATE

@Aristos’ answer has got me most of the way there. The key part is to handle PageRequestManager.endRequest to hide the progress dialog when an AJAX call is complete.

There is one case where I still have a problem: if a submit button results in a file download, I don’t have an event I can use to hide my progress dialog. This question has an answer which may do the trick, I’ll try it out.

  • 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-06-07T04:24:47+00:00Added an answer on June 7, 2026 at 4:24 am

    You place an allow/not allow to submit form base on a flag, as:

    Page.Form.Attributes["onsubmit"] = "return fAllowToSubmit();";
    

    and you open close the flag for the submit when you send via updatepanel and wait for return.

     <script type="text/javascript"> 
        var _fAllowToSubmit = true;
        // here you can throw and an alert() when _fAllowToSubmit==false
        function fAllowToSubmit() 
         {
            if(!_fAllowToSubmit)
              alert("Please wait for the page to be updated");
    
           return _fAllowToSubmit;
         }
    
        // to avoid calling it before the Sys loaded
        jQuery(document).ready(function() {
          var prm = Sys.WebForms.PageRequestManager.getInstance();    
           prm.add_initializeRequest(InitializeRequest);
           prm.add_endRequest(EndRequest);
        });
    
        function InitializeRequest(sender, args) {
           _fAllowToSubmit = false;
           // to make it even nicer you can place here a fade css class
           // it will auto-clear with the next update.
           jQuery("#YourWarpDiv").addClass("FadedDiv");
        }
    
        function EndRequest(sender, args) {
            _fAllowToSubmit = true;
        }
    </script>
    

    and the

    .FadedDiv
    {
        background-color: white;
        filter:alpha(opacity=50);
        opacity: 0.5;
        -moz-opacity:0.50;
    }
    

    Of course you have also the “please wait” message that can open automatically with the update panel.

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

Sidebar

Related Questions

I have an (ASP.NET 3.5) intranet application which has been designed to use forms
I have an intranet ASP.NET web application in which I need to get the
We have an intranet asp.net web application which uses the OOTB ASP.net membership and
I have intranet highly user interactive ASP.net applications, which now I am going to
I'm creating an intranet asp.net mvc application that everyone in the company should have
Let me share the following scenario: I have a ASP.NET intranet Web-based application that
Hi I'm writing an ASP.Net MVC intranet application which is accessed via handhelds and
I have a ASP.NET intranet application that has a document library section. The user
I have an ASP.NET application which will be running in a web server (Windows
In our intranet ASP .NET application we use an architecture approach which is similar

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.