Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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)?

Posted
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.

Posted
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>");

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...