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

  • Home
  • SEARCH
  • 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 8826099
In Process

The Archive Base Latest Questions

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

my question is regarding the control UpdatePanel. UpdatePanel : Basically I have few UpdatePanels

  • 0

my question is regarding the control UpdatePanel.

UpdatePanel: Basically I have few UpdatePanels on my page, which load expensive to netword data, so sometimes I dont need to load everything, that is why i want to found out how to load on demand the content inside the UpdatePanel.

Using JQuery: The loading of the UpdatePanels should happens by the JQuery function call, so I don’t know how but with JQuery I should be able to say “LoadUpdatePanel(“idOfUpdatePanel”)” and it should load the content of it.

Any idea how to solve this issue by using the UpdatePanel and the JQuery or in what direction I should investigate?

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

    You simple can not do that with UpdatePanel. The UpdatePanel work automatically connected with all the post data, including the viewstate, and with the code behind.

    You can not run the code behind for just get one UpdatePanel, the full cycle must be run.

    What you can do

    you can avoid to run on code behind some functions by checking if the request is not from the same UpdatePanel.

    For example, let say that you have the 4 update panels, and update panel 2 is fired a post back. Then on the rest Update panels on page load you can do something like

    protected void Page_Load(object sender, EventArgs e)
    {
        if (IsUpdatePanelInRendering(Page, upUpdatePanelId))
        {
            // run the code for update panel 1, me
            // ...
        }
    }
    

    where IsUpdatePanelInRendering :

    public static bool IsUpdatePanelInRendering(Page page, UpdatePanel panel)
    {
        Debug.Assert(HttpContext.Current != null, "Where are you called ? HttpContext.Current is null ");
        Debug.Assert(HttpContext.Current.Request != null, "Where are you called HttpContext.Current.Request is null ");
    
        // if not post back, let it render
        if (false == page.IsPostBack)
        { 
            return true; 
        }
        else
        {
            try
            {
                // or else check if need to be update
                ScriptManager sm = ScriptManager.GetCurrent(page);
    
                if (sm != null  && sm.IsInAsyncPostBack)
                {
                    Debug.Assert(HttpContext.Current.Request.Form != null, "Why forms are null ?");
    
                    string smFormValue = HttpContext.Current.Request.Form[sm.UniqueID];
    
                    if (!string.IsNullOrEmpty(smFormValue))
                    {
                        string[] uIDs = smFormValue.Split("|".ToCharArray());
                        if (uIDs.Length == 2)
                        {
                            if (!uIDs[0].Equals(panel.UniqueID, StringComparison.InvariantCultureIgnoreCase))
                            {
                                return false;
                            }
                        }
                    }
                }
            }
            catch (Exception x)
            {
                Debug.Fail("Ops, what we lost here ?");
            }
    
            return true;
        }
    }
    

    Relative:
    How to limit the number of post values on UpdatePanel?
    how to prevent user controls code behind running in async postbacks?

    direct ajax call

    The better solution, but the difficult one, is to remove the UpdatePanels, and do your update manually using ajax calls.

    In this case you can use the jQuery, and partial send, partial update anything on the page, with the minimum cost of data send and manipulation – but with a more code and design.

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

Sidebar

Related Questions

I'm experimenting with the NumericUpDown control and have a question regarding its' flexibility. Basically,
I'm new to version control and I have a question regarding branching. I have
I have a question regarding a custom validator in my page. The custom validator
I have a question regarding template parts. I want to create a control that
I have small question regarding the following error: this.context.sourceCache On a custom control I
I have a question regarding stepper motor control while using the Microchip TCP/IP stack.
I have one question regarding using JQuery UI tab control in the asp.net mvc
We have a question regarding VB.Net 2008. We are used control array in vb.net
I've got a question regarding the Telerik RadGrid control client side binding. I want
i have a question regarding the AsyncTask class in android, and why it is

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.