any idea how to activate an ASPX page in another window by click on a button?

  • Thread starter Thread starter Hrvoje Vrbanc
  • Start date Start date
H

Hrvoje Vrbanc

Hello all,

here is what I'd like to do: I have an ASPX page with certain buttons that
opens in its window, naturally. When any of those buttons is clicked, I'd
like the action to happen in another targeted window (with parameters passed
on) and that my original window remains unchanged. That window may or may
not already be open, the point is that a click on any button on my original
page causes action in the other but always the same window (the first click
opens it, other clicks simply change its content). Of course, if I use
Response.Redirect() method, it will change the page in the original window
and that's not what I want.

Is there a way to do this?

I know I could implement the content of my original frame as a user control
within a composite page but I'd prefer the several independent windows
solution.

Thank you in advance.

Kind regards,
Hrvoje
 
Sorry for not researching enough prior to posting as I managed to find the
solution. I simply enrichened response.redirect with some JavaScript
containing frame name, e.g.:

Response.Write("<script>window.open('new_page.aspx?o=1&n=0&p=A',frame_name',
'');</script>")



Thank you.



Kind regards,

Hrvoje Vrbanc
 
Back
Top