Thanks for the tip. I am really unexperienced with ASP. I assume I have to
enclose the "vard = Request.QueryString("var1")" line with the <% and %>
tags, correct? I also assume the way to embedd the variable in the img tag
is
"https://ddd.eee.com/fff.asp?vara=fixed&varb=fixed&varc=fixed&vard=<%=v ard%>&vare=fixed"
(you had ommited the "vard=" piece).
Thanks.
Charles
"senthil" <se*****@discussions.microsoft.com> wrote in message
news:69**********************************@microsof t.com...
you can easily do this with asp.
You can get the Query string values from the url as
querystringvalue = Request.QueryString("stringname")
example
"https://aaa.bbb.net/ccc.asp?var1=12345&var2=True&var3=hello"
with this page
vard = Request.QueryString("var1")
now you can generate a img take like
<IMG border=10 hspace=10 vspace=10
width=1 height=1
src="https://ddd.eee.com/fff.asp?vara=fixed&varb=fixed&varc=fixed&<%=vard%> &vare=fixed">"
Senthil
"Charles" wrote:
I need to retreive a URL variable on a .asp page using either ASP or JS
and
then put in into the URL of an img tag.
Example:
- The page we are looking at has URL
"https://aaa.bbb.net/ccc.asp?var1=12345&var2=True&var3=hello"
- I need to use JS or ASP to build a tag "<IMG border=10 hspace=10
vspace=10
width=1 height=1
src="https://ddd.eee.com/fff.asp?vara=fixed&varb=fixed&varc=fixed&vard=1234 5&vare=fixed">"
- Basically, the value of var1 from the URL should be used as the value
from
vard in the img tag
Your help is appreciated.
Charles