Querystring question
am 18.09.2007 17:30:46 von grnjeans922
A little guidance, please....
I'm trying to pass info through the querystring method, across 3
pages.
In my first page, it is being sent out using:
if regEx.test(strAskedFor) then
response.redirect("/store/catalog_request_frm.asp?
foundUs="&strAskedFor)
It lands on the second page just fine, I check the value using:
strAskedFor = Request.QueryString("foundUs")
response.write(strAskedFor)
Now here is where I'm stuck.....I'm trying to use this info again,
constructing a link, and after much tinkering,
I'm not sure if this is an acceptable use, or I'm just referencing
this wrong.
Send me
a Complete Catalog
Any assistance would be greatly appreciated!
Re: Querystring question
am 18.09.2007 17:43:36 von reb01501
grnjeans922@yahoo.com wrote:
>
> strAskedFor = Request.QueryString("foundUs")
> response.write(strAskedFor)
>
> Now here is where I'm stuck.....I'm trying to use this info again,
> constructing a link, and after much tinkering,
> I'm not sure if this is an acceptable use, or I'm just referencing
> this wrong.
>
> Send me
> a Complete Catalog
>
>
Server-side variables are not visible to client-side html. You have to
write the value to the Response. There is a shortcut for doing this:
<%="something"%>
does the same thing as
<%Response.Write "something"%>
Applying this to your html, we get (line breaks added for readability):
a href="/store/catalog_request_frm.asp?foundUs=
<%=strAskedfor%>
>
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Re: Querystring question
am 18.09.2007 17:51:12 von me
wrote in message
news:1190129446.429510.238040@q3g2000prf.googlegroups.com...
>A little guidance, please....
>
> I'm trying to pass info through the querystring method, across 3
> pages.
>
> In my first page, it is being sent out using:
>
> if regEx.test(strAskedFor) then
> response.redirect("/store/catalog_request_frm.asp?
> foundUs="&strAskedFor)
>
> It lands on the second page just fine, I check the value using:
>
> strAskedFor = Request.QueryString("foundUs")
> response.write(strAskedFor)
>
> Now here is where I'm stuck.....I'm trying to use this info again,
> constructing a link, and after much tinkering,
> I'm not sure if this is an acceptable use, or I'm just referencing
> this wrong.
>
> Send me
> a Complete Catalog
>
>
> Any assistance would be greatly appreciated!
>
now on any page you go to you can call
Session("strAskedFor")