|
 |
proasp_howto thread: Response.Redirect to a new browser window
Message #1 by "S. Sridhar" <oesridhar@e...> on Mon, 4 Feb 2002 16:40:42 -0500
|
|
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C1AE9A.D836C830
Content-Type: text/plain;
charset="iso-8859-1"
I offered a *programmatic* solution, it was a just that is was a javascript
solution. You can *only* do this client side. Use the code I gave you in an
onload event for a page and Response.Redirect to that page.
regards
David Cameron
nOw.b2b
dcameron@i...
> -----Original Message-----
> From: S. Sridhar [mailto:oesridhar@e...]
> Sent: Wednesday, 6 February 2002 2:00 AM
> To: Pro ASP HowTo
> Subject: [proasp_howto] Re: Response.Redirect to a new browser window
>
> Hi Susan (and David Cameron):
>
> Thanks for both your responses. I think I didn't accurately communicate
what I wanted. I don't want to create and then click on a hyperlink. I want
to *programmatically* redirect to a different page in a new browser window.
Something like:
>
> Response.Redirect "bar.asp" -- but in a new browser window.
>
> If I just do: Response.Redirect "bar.asp", this will load the new page in
the current browser window.
>
> --sridhar
>
> ----- Original Message -----
> From: Susan R. Grossman <mailto:design@f...>
> To: Pro ASP HowTo <mailto:proasp_howto@p...>
> Sent: Monday, February 04, 2002 5:07 PM
> Subject: [proasp_howto] Re: Response.Redirect to a new browser window
>
> You can simply put a JavaScript function in the URL. It also will control
the size of the windows and what browser bars and scrolls are displayed
>
> <script>
> function openWindow(url)
> {
> window.open(url,'WHATEVERNAME','width=x,
height=x,scrollbars=yes,resizable=no');
> }
> </script>
>
> <a href=" <javascript:openWindow('/>bar.asp');">Go Here</a>
>
>
> Susan
>
> "S. Sridhar" wrote:
>
> Hi: I am in a server page: foo.asp. From here I want to open a new browser
window with the page bar.asp loaded. I know this won't work, but something
like this: Basically I want the equivalent of clicking on this link: <A
HREF="bar.asp" target=_blank>Go here</A> Normally I would have done:
Response.Redirect "bar.asp", but I'd like bar.asp to be loaded in a new
browser window. How can this be done? --sridhar---
> Change your mail options at <http://p2p.wrox.com/manager.asp> or
$subst('Email.Unsub').
>
$subst('Email.Unsub').
>
$subst('Email.Unsub').
|
|
 |