exceter Posted April 4, 2005 Posted April 4, 2005 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)? Quote
Moderators Robby Posted April 5, 2005 Moderators Posted April 5, 2005 Can't you make them parent/child? Quote Visit...Bassic Software
exceter Posted April 5, 2005 Author Posted April 5, 2005 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. Quote
Moderators Robby Posted April 5, 2005 Moderators Posted April 5, 2005 I still don't understand why you cannot open the page as a Child. Quote Visit...Bassic Software
Mister E Posted April 5, 2005 Posted April 5, 2005 The best way to do something like this is with JavaScript. Quote
exceter Posted April 6, 2005 Author Posted April 6, 2005 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>"); Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.