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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:39:49+00:00 2026-05-26T18:39:49+00:00

I have Page A and Page B When Page A loads Page B loads

  • 0

I have Page A and Page B

When Page A loads Page B loads too on background (its a service that I need to run).

Page A finishes loading and than Page B finishes loading.

When Page B finishes loading I would like to update a control on Page A

I’ve tried a few things with no success.

First one:
On Page B

protected void Page_Unload(object sender, EventArgs e)
    {
        parceiros _p = new parceiros();
        _p.Update();
    }

Since the Page is already rendered it gives me Object reference not set of course (like the label does not exists) by the way, I’ve tried this before the Page B unload too…

Second one:
When Page B finished loading, I’ve called a Javascript function from my code behind, and this javascript is suppose to do the job, it didn’t work as well. I’ve even tried to call a alert() function but i doest not work. Since the Page that the user is, is Page A, it didn’t work but i had to give it try.

Any one have any ideia how can I do this.

I though of Session as well but since page A finishes loading first I don’t know how I could get the value…

Edited as required:

Here is the code I called on the Page_Unload on Page B

string jsGeral = "/js/geral.js";
        Page.ClientScript.RegisterClientScriptInclude(jsGeral, jsGeral);


        jsChart.Add(dataset);

        Page.RegisterStartupScript("myScript", "<script language=JavaScript>DoSomething();</script>");
        Response.Write(jsChart.ToString());
  • 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-26T18:39:50+00:00Added an answer on May 26, 2026 at 6:39 pm

    This is generally what you can do:

    In page A:

    Load Page B

    In page B after loaded:

    Set a session variable

    In page A:

    Server Side: Define a function that returns new control content if the session variable is set.

    Client Side: Periodically check for the new content by invoking that function in your page.

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

Sidebar

Related Questions

I have a website that requires a very large background image. The page loads
I have a page that loads a bunch of scripts to prepopulate dropdowns and
I have a page that loads other pages via Ajax (think frames, except without
I have a page that loads an external HTML page into an iFrame. There
I have a .aspx page that loads three separate .ascx controls to represent adding,
I have an asp page that loads a response user=exists everytime I try to
Background: I'm working on a single page web app that loads everything through AJAX
I have a html page that has more than one head and body. The
So I have a page that loads the data into the page through the
I have a product page that loads fine when I type in the www

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.