Friday, March 16, 2012

open an url in a new window

Hi,

I have tried Response.Redirect("http://intranet", True) and
Server.Transfer(http://intranet) but in both cases the new page is not
opened in a new browser window, but in the same window as my aspx page.

Is there another way to popup a new browserwindow?

rg,
Ericnot with codebehind. You'll have to pass it to a clientside call. Server has
no idea of windows/frames/etc

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com

"EMW" <SomeOne@.MicroSoftdotCom> wrote in message
news:40aa5c9c$0$41761$5fc3050@.dreader2.news.tiscal i.nl...
> Hi,
> I have tried Response.Redirect("http://intranet", True) and
> Server.Transfer(http://intranet) but in both cases the new page is not
> opened in a new browser window, but in the same window as my aspx page.
> Is there another way to popup a new browserwindow?
> rg,
> Eric
No, Response.Redirect won't work for this.
You can open a new window using javascript such as this:
a=window.open('MyPage.aspx','MyWindow')
Here's more info:
http://msdn.microsoft.com/workshop/...hods/open_0.asp

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

"EMW" <SomeOne@.MicroSoftdotCom> wrote in message
news:40aa5c9c$0$41761$5fc3050@.dreader2.news.tiscal i.nl...
> Hi,
> I have tried Response.Redirect("http://intranet", True) and
> Server.Transfer(http://intranet) but in both cases the new page is not
> opened in a new browser window, but in the same window as my aspx page.
> Is there another way to popup a new browserwindow?
> rg,
> Eric
thanks, Curt and Steve!

"Steve C. Orr [MVP, MCSD]" <Steve@.Orr.net> schreef in bericht
news:OH9AarQPEHA.1612@.TK2MSFTNGP11.phx.gbl...
> No, Response.Redirect won't work for this.
> You can open a new window using javascript such as this:
> a=window.open('MyPage.aspx','MyWindow')
> Here's more info:
http://msdn.microsoft.com/workshop/...hods/open_0.asp
> --
> I hope this helps,
> Steve C. Orr, MCSD, MVP
> http://Steve.Orr.net
>
> "EMW" <SomeOne@.MicroSoftdotCom> wrote in message
> news:40aa5c9c$0$41761$5fc3050@.dreader2.news.tiscal i.nl...
> > Hi,
> > I have tried Response.Redirect("http://intranet", True) and
> > Server.Transfer(http://intranet) but in both cases the new page is not
> > opened in a new browser window, but in the same window as my aspx page.
> > Is there another way to popup a new browserwindow?
> > rg,
> > Eric

0 comments:

Post a Comment