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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:09:28+00:00 2026-05-25T06:09:28+00:00

I am developing a web application using asp.net framework 4.0. I am using so

  • 0

I am developing a web application using asp.net framework 4.0. I am using so many PageMethods in my application i.e my application is fully ajax enabled. I am not using UpdatePanel to avoid page partial postback. In my scenario i want to show progressbar when an AJAX request is made by PageMethods. I cant use UpdateProgress as It is associated with UpdatePanel which i am not using. I can show progress bar before calling a function & onsuccess i can hide it. like

function CallPageMethod()
{
   $("#progressDiv").show();
   PageMethods.GetCurrentDate(Onsuccess);
}

function Onsuccess(result)
{
      $("#progressDiv").hide();
      alert(result);
}

This methods works fine but its very difficult for me to write show & hide code for each & every pagemethods. As my page contains so many PageMethods. How do i write a common method which will show/hide progressbar for each AJAX request?

  • 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-25T06:09:28+00:00Added an answer on May 25, 2026 at 6:09 am

    if you are looking for a way to isolate and share calls to progress bar hide and show in a common method, surely you can have a JS function which does the $("#progressDiv").show() or $("#progressDiv").hide() for everybody. such function could even be the same and accept a bool visible as parameter than from every PageMethod calling place and in every OnSuccess you will call this function.

    I think you cannot really do much more because in fact every page method invokation would need to be different and also every OnSuccess could behave differently depening on the case so those handlers have to be separated.

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

Sidebar

Related Questions

I am developing a web application using Asp.net mvc framework with concept of sub
I'm developing a web application using ASP.NET MVC (I'm new to the framework and
I'm developing a small web application in ASP.Net (framework version 3.5) using VS2008 and
I'm developing a web application using ASP.NET MVC 3 and Entity Framework Code First
I an developing a web application in ASP.Net using C#, under .Net Framework 4.0.
I am developing a web application with Azure Cloude Service and using ASP.NET 3.5,
I'm developing an web application using asp.net MVC and jQuery. I have in my
I'm developing a web application using asp.net 3.5. This application has a lot of
I am developing my first web application using ASP.Net MVC, and I am in
I am Developing a web application by using ASP.NET 3.5, jQuery and RadAjax Telerik

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.