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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:04:15+00:00 2026-06-14T07:04:15+00:00

I would like to implement a jquery blockUI to popup and show a progress

  • 0

I would like to implement a jquery blockUI to popup and show a progress indicator (loading circle) during postbacks in Asp.Net. How can I implement this? I am using masterpages so I was wondering if I can implement this code in one place to keep it simple. Is this even possible? Looking forward to hear your thoughts on this.

Thanks in advance.


I was able to develop this. I have included the steps in answers. Let me know if you have questions.

  • 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-14T07:04:16+00:00Added an answer on June 14, 2026 at 7:04 am

    I figured it out myself.

    1. Create a new Asp.net web project.
    2. Include the following in Site.Master markup:

      <script type="text/javascript" src="../Scripts/jquery-1.4.1.min.js"></script>
      <script type="text/javascript" src="../Scripts/jquery.blockUI.js"></script>
      <script language="javascript" src="../Scripts/General.js" type="text/javascript"></script>
      
      <style>
        div.blockOverlay {
          background-color: #666;
          filter: alpha(opacity=50) !important;
          -moz-opacity:.50;
          opacity:.50;
          z-index: 200000 !important;
        }
        div.blockPage {
          z-index: 200001 !important;
          position: fixed;
          padding: 10px;
          margin: -38px 0 0 -45px;
          width: 70px;
          height: 56px;
          top: 50%;
          left: 50%;
          text-align: center;
          cursor: wait;
          background: url(ajax-loader.gif) center 30px no-repeat #fff;
          border-radius: 5px;
          color: #666;
          box-shadow:0 0 25px rgba(0,0,0,.75);
          font-weight: bold;
          font-size: 15px;
          border: 1px solid #ccc;
        }
      </style>
      
    3. Add the following markup in default.aspx:

      <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate><asp:Button ID="Button1" runat="server" Text="Button" 
              onclick="Button1_Click" /></ContentTemplate>
      </asp:UpdatePanel>
      
    4. Add a progress indicator image (ajax-loader.gif) to project root

    5. Add the following in General.js

      // BlockUI setup
      
      $.extend({
        // Block ui during ajax post back
        initializeUiBlocking: function () {
          if (typeof ($.blockUI) != 'undefined') {
            $.blockUI.defaults.message = 'LOADING';
            $.blockUI.defaults.overlayCSS = {};
            $.blockUI.defaults.css = {};
      
            var request = Sys.WebForms.PageRequestManager.getInstance();
            request.add_initializeRequest(function (sender, args) {
              request.get_isInAsyncPostBack() && args.set_cancel(true);
            });
            request.add_beginRequest(function () { $.blockUI(); });
            request.add_endRequest(function () { $.unblockUI(); });
          }
        }
      });
      
      $(document).ready(function () {
        $.initializeUiBlocking();
      });
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to implement Jquery EasyUI (http://www.jeasyui.com) in my asp.net application. If you
In our ASP.NET 3.5 application, we would like to implement a "Please wait.." feature
I would like to implement a loading image for my jquery ajax code (this
Using the BlockUI JQuery plugin I find strange behaviour from within an ASP.Net page.
How can I implement jQuery DataTables plugin using C#, ASP.NET, SQL Server side processing
I have a C# .NET web app and would like to implement an UNDO
I'm building a mobile application using jQuery Mobile and I would like to implement
I would like to implement a jQuery client-side script to be able to check/un-check
I would like to implement the following feature using jQuery scrollTo function or some
On my site, I would like to implement AJAX page loading, as seen on

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.