468,532 Members | 1,716 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,532 developers. It's quick & easy.

Response.Redirect can it open a new window ???

ODB
Okay what i need is to open af new browser windows with some link in, but i
can't get the Response.Redirect to open af new window, and when i redirect
to a new page in the same window and then hit back, i have some olde
invalid data in my window. and i realy need to open af new browser ?

Thanks ODB
Nov 18 '05 #1
3 3358

Any Response operation always goes back to the same window unless you
specify a target clause in the link that got you to the current request.
IOW, the referring link determines how the current link will be opened.

If you really need to do this you can redriect to a page that has some
JavaScript on it and opens a new window and loads the content into that.

+++ Rick ---

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/blog/
----------------------------------
Making waves on the Web
"ODB" <OD*@FejlVibeholmFejl.dk> wrote in message
news:Xn**********************************@207.46.2 48.16...
Okay what i need is to open af new browser windows with some link in, but i can't get the Response.Redirect to open af new window, and when i redirect
to a new page in the same window and then hit back, i have some olde
invalid data in my window. and i realy need to open af new browser ?

Thanks ODB

Nov 18 '05 #2
Here is an example of how it can be done in your code so that you can
control it.

dim strurl as string = "http://www.yahoo.com"

dim strCommand as string = "vlarge1=window.open('" & strurl &
"','vlarge','resizable=no,scrollbars=no,status=no, toolbar=no,height=450,widt
h=575,left=150,top=100');vlarge1.focus();" & vbCrLf

dim strCommand as string = "window.open('" & strurl & "','','');" & vbCrLf

response.write("<script>" & vbCrLf)
response.write(strCommand & vbCrLf)
response.write("<" & chr(47) & "script>")
response.redirect(strUrl)

"ODB" <OD*@FejlVibeholmFejl.dk> wrote in message
news:Xn**********************************@207.46.2 48.16...
Okay what i need is to open af new browser windows with some link in, but i can't get the Response.Redirect to open af new window, and when i redirect
to a new page in the same window and then hit back, i have some olde
invalid data in my window. and i realy need to open af new browser ?

Thanks ODB

Nov 18 '05 #3
Sorry my post should read

Here is an example of how it can be done in your code so that you can
control it.

dim strurl as string = "http://www.yahoo.com"

dim strCommand as string = "vlarge1=window.open('" & strurl &
"','vlarge','resizable=no,scrollbars=no,status=no, toolbar=no,height=450,widt
h=575,left=150,top=100');vlarge1.focus();" & vbCrLf

or you can use if you don't want to size it
dim strCommand as string = "window.open('" & strurl & "','','');" & vbCrLf

response.write("<script>" & vbCrLf)
response.write(strCommand & vbCrLf)
response.write("<" & chr(47) & "script>")

don't put this line in
'response.redirect(strUrl)

"ODB" <OD*@FejlVibeholmFejl.dk> wrote in message
news:Xn**********************************@207.46.2 48.16...
Okay what i need is to open af new browser windows with some link in, but i can't get the Response.Redirect to open af new window, and when i redirect
to a new page in the same window and then hit back, i have some olde
invalid data in my window. and i realy need to open af new browser ?

Thanks ODB

Nov 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Hugh Welford | last post: by
3 posts views Thread by Sehboo | last post: by
4 posts views Thread by Dave | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.