|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Get URL variable on .asp page with ASP or JS
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=12345&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 |
|
#2
|
||||
|
||||
|
not sure thisis what you want but
if your url is www.blah.com/index.asp?var1=1234 to get the info you would do dim url_var url_var = request.querystring("var1") if you then wanted to put it back in the url you would then do <a href="www.blahsomemore.com/index.asp?var1=<%= url_var %><img src="/imahe/blah.jpg")</a> Somthing like that Hope that helps sry if it doesn't
__________________
Around a circle you can always draw a bigger circle. EnenDaveyBoy |
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > Get URL variable on .asp page with ASP or JS |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|