By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,296 Members | 1,469 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,296 IT Pros & Developers. It's quick & easy.

Can I put target in Response.Redirect?

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
> 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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.