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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T11:45:12+00:00 2026-05-31T11:45:12+00:00

I have been searching high and low for a solution to my problem and

  • 0

I have been searching high and low for a solution to my problem and can only find pieces of the puzzle with no way to connect them. I have a window (which it self is a child of the main window) that can open multiple other windows. I want the children windows to be closed when the parent is closed, sounds simple enough right?

Here is the dilemma, my parent window does a postback when opening the child so any array of handles (which are also objects) I keep does not persist. I have looked into serializing and de-serializing this array and storing it in a hidden field but that doesn’t seem like the best solution. I also can not access the parent of the window doing the opening.

Aside from Javascript, the server side code is written in C# and I’m using asp.net. Is there any reasonable solution to this? I should also mention that the code I am working with was written by multiple different people long before I got to it so I would like to add to it rather than changing how most of it works.

Finally, I know it is typically a good idea to post my code on here but I am simply using var win = window.open to perform the window opening task.

Thank you.

  • 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-31T11:45:13+00:00Added an answer on May 31, 2026 at 11:45 am

    OK, I then see 3 ways to get around that problem:

    • Don’t use multiple browser windows, but style your page to show all the dialogues; as @Gats suggested. OK, that will somewhat limit you if you want the input of parent “windows” persistant while navigating in a child window.
    • Don’t do a refresh postback to unload the parent. Use Ajax instead to send data to the application server
    • You can’t store (window) objects, you only can store strings. When opening a window, you can give it a “target” name, and any other window.open with the same target (name) will use the already open one. With that, you can reference windows you didn’t open yourself – and close them. See https://stackoverflow.com/a/563478/1048572
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been searching high and low for a way to get my silverlight
I have been searching high and low for a way to paginate an XML
I have been searching everywhere but can't seem to find a solution to this
I have been searching and cant find a consistent solution to my problem :
I have been searching around using Google but I can't find an answer to
I have been searching a little but can't find anything about it. I wan't
I have been searching high/low on the GooglePlex and here for a sample MVC3
I have been searching high and low on the internet for an answer to
Have been searching the net for the past hours to find a solution to
Been searching high and low for this: In Core Data, is there a way

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.