473,289 Members | 2,155 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,289 software developers and data experts.

Can I put target in Response.Redirect?

In Heyperlink, you can specify the target of URL, such as _blank. But how
can I specify the target in Response.Redirect?

Thanks
Luke
May 15 '06 #1
3 5608
> In Heyperlink, you can specify the target of URL, such as _blank. But how can
I specify the target in Response.Redirect?

Thanks
Luke


You can't. Hyperlink works client-side, which know about things like
windows and targets. Redirect works from the server and knows nothing
about windows and such.

You will have to emit javascript that opens that other window and
redirects that.
Hans Kesting
May 15 '06 #2
Thanks for reply. The following is what I want to do:

I have two frames in a page: frame A and frame B. In frame A, I put a web
control - drop down list. The use will pick up from the drop downlist whose
each item indicates for a new URL. I want to disply the new URL in frame B.
Response.Redirect doesn't work for this purpose based on your answer.

Any suggestions to this issue?

Luke

"Hans Kesting" <ne***********@spamgourmet.com> wrote in message
news:mn***********************@spamgourmet.com...
In Heyperlink, you can specify the target of URL, such as _blank. But how can I specify the target in Response.Redirect?

Thanks
Luke


You can't. Hyperlink works client-side, which know about things like
windows and targets. Redirect works from the server and knows nothing
about windows and such.

You will have to emit javascript that opens that other window and
redirects that.
Hans Kesting

May 15 '06 #3
You'll have to use client side code to redirect a specific frame to a
specific ASPX page.
I don't like to have to use such client side hacks which is why I stay away
from frames.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Luke Xu" <li****@hotmail.com> wrote in message
news:u9**************@TK2MSFTNGP02.phx.gbl...
Thanks for reply. The following is what I want to do:

I have two frames in a page: frame A and frame B. In frame A, I put a web
control - drop down list. The use will pick up from the drop downlist
whose
each item indicates for a new URL. I want to disply the new URL in frame
B.
Response.Redirect doesn't work for this purpose based on your answer.

Any suggestions to this issue?

Luke

"Hans Kesting" <ne***********@spamgourmet.com> wrote in message
news:mn***********************@spamgourmet.com...
> In Heyperlink, you can specify the target of URL, such as _blank. But how can > I specify the target in Response.Redirect?
>
> Thanks
> Luke


You can't. Hyperlink works client-side, which know about things like
windows and targets. Redirect works from the server and knows nothing
about windows and such.

You will have to emit javascript that opens that other window and
redirects that.
Hans Kesting


May 15 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Cantekin Guneser | last post by:
in my project i am using framesets, at the left frame set notmally i am using hiperlink element with target to redirect main frame this is ordinary, but now i need to redirect main frame with...
5
by: MB | last post by:
Hello! I am using a frameset and vb codebehind to work with a database. When pressing a delete button in one of my frames, I want the hole application to be refreshed, or at least another of my...
8
by: msnews.microsoft.com | last post by:
I want to redirect the user to a url outside of our website but I want it to preserve our application's window by opening a new window. We have a datagrid that has five hyperlink columns containing...
6
by: T. Seaburn | last post by:
I have an aspx page that is always invoked by Response.Redirect calls from other pages. I want my aspx page to always display in a new browser window. Since the Response.Redirect calls from the...
1
by: et | last post by:
How can I do a Response.Redirect using a target=_blank? Response.Redirect(WebForm2.aspx?cn=12345 Target=_blank) did not work and I'm not sure what else to try.
15
by: dee | last post by:
Hi, I'm curious why MS decided to have Transfer hide the target page's url invisible? Any guesses ? Thanks. Dee.
2
by: sck10 | last post by:
Hello, I am trying to redirect to a new URL using a query string and target. I can not figure out how the syntax should be for setting the target. Any help with this would be appreciated. --...
2
by: Steve K | last post by:
I have a form that, when the submit button is clicked, the user is redirected to another webpage using the "next-url" input. But, the page that the form is in is in frames and the page it's being...
1
Kosal
by: Kosal | last post by:
hi Everyone can help me, I want to put target in Response.Redirect that i using frame so how can i write code in asp please help me. thanks
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
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...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.