How to refresh another page (not parent/child)

exceter

Newcomer
Joined
Jun 30, 2003
Messages
12
Hi,
In ASP.NET (c#) I need to refresh another page after inserting some data in one page. These are not parent/child pages.
I have to pages, say, one main, the other depends on it.
In second page there is an image control, which must change depending on the data of the first page.
how to make the second page refresh on button event(press)?
 
Robby said:
Can't you make them parent/child?
Well,
what I actually want is:
There is a textbox control on main page (I insert there date), and there is an image control which gets the image from another page. The image on second page changes depending on the data of textbox on main page.
I cant place the image itself on main page, because it hides other controls, that is why I need to place it on another page.
 
Mister E said:
The best way to do something like this is with JavaScript.
That was the solution
Page.RegisterClientScriptBlock("FrameRefresh", "<script language='javascript'>window.top.frames[index].location.reload(true);</script>");
 
Back
Top