Reponse.redirect to new browser window

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to do the equivalent of Response.Redirect, but to a new instance of the browser window. Is this an easy one? I'd also like to suppress as much of the standard toolbars, etc. as I can. All thoughts are appreciated

Thanks

Bill
 
You can open a new window using javascript such as this:
a=window.open('Test.aspx','_new')
There are all kinds of options for setting window properties such as window
size and toolbar visibility.
Here's more info:
http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/open_0.asp
http://www.mozilla.org/docs/dom/domref/dom_window_ref77.html

You can use the RegisterClientScriptBlock or RegisterStartupScript
functions to help you output the javascript from your server code.
Here's more info on these:
http://msdn.microsoft.com/library/d...UIPageClassRegisterClientScriptBlockTopic.asp
http://msdn.microsoft.com/library/d...mWebUIPageClassRegisterStartupScriptTopic.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net



Bill Borg said:
I would like to do the equivalent of Response.Redirect, but to a new
instance of the browser window. Is this an easy one? I'd also like to
suppress as much of the standard toolbars, etc. as I can. All thoughts are
appreciated.
 
Hey Bill,

you can this make, by using javascript.
With the funtion Page.RegisterClientScript
you must create the javascript-funktion to open the new browser.
In this function you can also set the properties for the new browser.
Then call the the function.
If You want close the old browser call "self.close";
A Redirect is no need do use.

friendly regards
Andreas Löwe

Bill Borg said:
I would like to do the equivalent of Response.Redirect, but to a new
instance of the browser window. Is this an easy one? I'd also like to
suppress as much of the standard toolbars, etc. as I can. All thoughts are
appreciated.
 
Back
Top