Re: cause webpage one to reload when webpage two is closed.
- From: Paul <Paul@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 17 Jun 2008 13:28:01 -0700
Hi, thanks for the response.
I tried adding
<body onunload="opener.location.href=opener.location.href;"></body>
to the source of the second page but get the error
element body can not be nested within element td. I placed the code as
follows in the second form aspx file.
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
<body onunload="opener.location.href=opener.location.href;"></body>
followed by several html tables.
Anyhow just wondering where to place the body tag?
Also the way the user gets to the second page from the first page is just a
hyperlink.
thanks.
--
Paul G
Software engineer.
"Alexey Smirnov" wrote:
On Jun 17, 9:19 pm, Paul <P...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:.
Hi I tried a google search but could not find anything. I am trying to cause
one webpage to reload when a second web page is closed. The second webpage
loads data into a session variable and when closed I need to reload the first
page loading in the data from the session variable. Since I need to close
the sescond form just setting the post back url to the first page on the
close button from the second page is not quite what I am looking for.
--
Paul G
Software engineer.
Hi Paul,
Try to add the following code to your second web page
<body onunload="opener.location.href=opener.location.href;">
You might be also interested to see the following thread
http://forums.asp.net/t/988319.aspx
Hope this helps
- Follow-Ups:
- Re: cause webpage one to reload when webpage two is closed.
- From: Alexey Smirnov
- Re: cause webpage one to reload when webpage two is closed.
- References:
- Re: cause webpage one to reload when webpage two is closed.
- From: Alexey Smirnov
- Re: cause webpage one to reload when webpage two is closed.
- Prev by Date: Re: cause webpage one to reload when webpage two is closed.
- Next by Date: pdf barcode/ocr library
- Previous by thread: Re: cause webpage one to reload when webpage two is closed.
- Next by thread: Re: cause webpage one to reload when webpage two is closed.
- Index(es):