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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T17:06:38+00:00 2026-05-11T17:06:38+00:00

I am using an UpdatePaenl in an asp.net page. It has a button to

  • 0

I am using an UpdatePaenl in an asp.net page.
It has a button to trigger it. I’m able to show “Loading” when the button is pressed.
Here’s my issue: I need it to show “Loading” when the page is first called, not just when a button is pressed.

I would imagine that JavaScript would be used to trigger the UpdatePanel when the page is first loaded.

Any ideas are greatly appreciated. Thanks

  • 1 1 Answer
  • 1 View
  • 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-11T17:06:39+00:00Added an answer on May 11, 2026 at 5:06 pm

    You should be able to do this in javascript by setting up an event to fire after the page is loaded:

    // Define the pg_Loaded() function as the handler for the PageLoaded event
    Sys.WebForms.PageRequestManager.getInstance().add_pageLoaded(pg_Loaded);
    
    var blnFirstPageVisit = true;
    
    function pg_Loaded() 
    {
        if (blnFirstPageVisit == true) 
        {
            // Display loading animation
            fnToggleLoading();
    
            // Trigger button postback event
            <asp:literal runat="server" id="ltlExecute" />
    
            // Prevent this from firing a second time after the postback completes
            blnFirstPageVisit = false;
        }
    }
    

    In ASP set the literal text like so:

    ltlExecute.Text = ClientScript.GetPostBackEventReference(btnExecute, "")
    

    More information exists at MSDN: 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 ASP.NET 3.5 page which has a repeater containing lines of information
I am building an ASP.NET site using Visual Studio 2008 and have a page
I have an ASP.NET web page that displays a variety of fields that need
I have an asp.net page with a save button within an updatepanel and contenttemplate.
I'm using asp.net and c#, making a page with ajax updatepanels. When I try
I am using modal dialog of jQuery UI with my ASP.Net application. The page
So, here's the scenario : I have a page in my asp.net c# based
Suppose I'm building a StackOverflow clone using webforms ASP.NET and jQuery. The Question page
I am using ajax UpdatePanel in my asp.net page, and I wanted to know
Is there an ASP.NET AJAX framework other than just using UpdatePanel & Friends or

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.