Querystring with Target

W

William F. Robertson, Jr.

target is a property of the link.

ie

<a href="http:con/.aspx?qv01=101" target="_blank">click here</a>

bill
 
W

William F. Robertson, Jr.

I might have misunderstood what you were after. Place a & between your
key/value pairs.

content.aspx?qv01=101&Target=_Blank.

You can then access the querystring from your page.

Request.QueryString["qv01"] will return "101"
Request.QueryString["Target"] will return "_Blank"

bill
 
S

Steven Cheng[MSFT]

Thanks for Bill's inputs.

Hi Sck10,

As Bill has mentioned, if you're wanting to append an querystring item
"Target" in your querystring, we can just use the "&" char to concat
querystring item.

However, I'm thinking what you actually want is buiding a querystring url
which will make the target page be displayed in the location specified by
the "target" parameter, yes?

If so, I'm afraid this is not possible at serverside's code since "Target"
is the feature provided by the clientside browser which will support the
<href > element's "Target" specification. As for url string, it only
contains the server document's address and any querystring info, won't
include any info of other clientside features. So generally , if we want to
control where the target page will be displayed, we need to try this in
clientside scripts, such as window.open or just using script to modify the
<href > elements in the html document.

If there is anything unclear, please feel free to post here. Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top