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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T07:00:39+00:00 2026-05-17T07:00:39+00:00

Old hand at ASP.NET, new to the UpdatePanel. I have a reporting page which

  • 0

Old hand at ASP.NET, new to the UpdatePanel. I have a reporting page which executes a fairly length SQL query… takes about 10 seconds right now. What I would like to do is have my page fully render, with some placeholder text (Loading…) and then have the UpdatePanel kick off the actual time-consuming reporting process and render the report when it’s done.

So… my theory is to use RegisterStartupScript() to kick this off and drop the string from GetPostBackEventReference() to trigger the UpdatePanel update. Some problems crop up:

1) Can I actually use GetPostBackEventReference w/ the UpdatePanel or do I need to trigger it some other way? Use this method on a button inside the Update Panel?

2) What event gets triggered when the postback reference is the UpdatePanel? It’s not clear to me. I’ve got to call my databinding code somewhere! Again, maybe I need to use a button inside?

  • 1 1 Answer
  • 3 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-17T07:00:39+00:00Added an answer on May 17, 2026 at 7:00 am

    I had to do something very similar recently, here’s how i did it (right or wrong):

    The trick is a “Hidden Async Postback Trigger”.

    <asp:UpdatePanel ID="upFacebookImage" runat="server">
       <ContentTemplate>
          <!-- Your updatepanel content -->
       </ContentTemplate>
       <Triggers>
          <asp:AsyncPostBackTrigger ControlID="hiddenAsyncTrigger" EventName="Click" />
       </Triggers>
    </asp:UpdatePanel>
    <asp:Button ID="hiddenAsyncTrigger" runat="server" Text="AsyncUpdate" style="display:none;" />
    

    Then from JavaScript, whenever you want to trigger the async postback, you do this:

    __doPostBack('<%= hiddenAsyncTrigger.ClientID %>', 'OnClick');
    

    In my example, i needed to trigger an async postback from a particular JS event. But you could attach it to doc ready.

    I seem to remember trying @Marko Ivanovski’s way, but for some reason it didn’t work. I think you need to specify a “postback-able” control (ie a button) to trigger the postback.

    HTH.

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

Sidebar

Related Questions

Age old question! When you have finished developing and testing your ASP.Net web application,
I have an asp.net application that uses the file (something like hand-made DB). It
In old mysql code, I had a query below which worked perfectly which is
Scenario: old legacy code in rpg have to consume data from a new web
I have a script which works fine on my old Windows XP computer but
I'm new to MVC and I borrow a book from library yesterday on asp.net
Sorry to ask all, but I'm an old hand Vb.net guy who's transferring to
I am facing with a huge task at hand, start re-factoring our biggest asp.net
I'm an old hand at PHP but have only dabbled in wordpress so excuse
The old JS SDK had a function called FB.ensureInit. The new SDK does not

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.