473,799 Members | 3,025 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can I put target in Response.Redire ct?

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

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

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.Redire ct 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.co m...
In Heyperlink, you can specify the target of URL, such as _blank. But how can I specify the target in Response.Redire ct?

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******** ******@TK2MSFTN GP02.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.Redire ct 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.co m...
> In Heyperlink, you can specify the target of URL, such as _blank. But how can > I specify the target in Response.Redire ct?
>
> 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
2679
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 dynamic text from dropdownlist and textbox, i tried like response.redirect("search.aspx?city="+ddl_city.selectedtext) but with this i can not redirect the main frame it redirects left frame again. i want to manupulate main frame from left frame with...
5
7199
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 frames to be refreshed. I don't really understand how to do this. I tried with response.redirect("Frameset1.htm") but I can't set target frame _parent for this command. I regular <a href="Frameset1.htm" target="_parent">test</a> would solve my...
8
3860
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 links to external sites. The hyperlink columns have the target="_blank" attribute so they preserve the existing window. This works OK except that the NavigateURL's are quite long due to the size of the query string and this makes the page slow. ...
6
1680
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 other pages can't inoke _blank as a target value, is there any way I can ensure that my aspx page always displays in a new browser window? Thanks, Tina
1
2803
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
1949
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
2441
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. -- Thanks in advance, sck10 Public strQuote As String = """"
2
4649
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 redirected to is also in frames. So after they hit submit, the new page is loaded within only one frame, we don't want this. I want it to go over top of that whole web page. I am very familiar with "target="_top" but not when the "next-url"...
1
1710
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
0
9688
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9546
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10491
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10268
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10247
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9079
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5467
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5593
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2941
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.