473,322 Members | 1,421 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

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 3556

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Hugh Welford | last post by:
Hi, is it possible to open a page in a new window with response.redirect, and if so, what is the syntax Thanks Hugh
4
by: Max Dupenois | last post by:
I've seen numerous articles with similair (similar sp?) titles to this in my search.. unfortunately none of them seem to contain what i want, (or if they do i need someone to point out my stupidity...
9
by: mallyonline | last post by:
I last posted to this group about 6 months ago and was very pleased by the excellent response I got and the great help offered to me. I am back this time with another request for your expert help...
3
by: eieed | last post by:
I have a web page that is designed to allow users to run crystal reports which are then exported into PDF formats. Currently, when the user clicks the "Submit" button there is some processing to...
3
by: Sehboo | last post by:
On my ASP page, when I click a button, I want to do three things: 1. Check for some values. 2. Open a new window and pass some values as query string. 3. Redirect to some other page Here...
2
by: John at Free Design | last post by:
Can anyone help with how to use the Response.Redirect method to open a page in a new instance of the browser. In this case it is a report. When the user selects a report from a list then I want...
9
by: anuragsji | last post by:
Hi, I have one combo box and GO button on the click of GO button page submitted and according to selection of one of the option from combo I want to redirect my page to some new asp page but at...
4
by: Dave | last post by:
Is there a way to do a Response.Redirect and do a popup on the redirect?
12
by: Jim Rodgers | last post by:
I have a big asp file that has an error under certain conditions -- totally repeatable. However, it only fails when I set response.buffer = True at the top. WHen I set it False in order to debug...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.