Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

URL parameter in a href tag

Status
Not open for further replies.

redoakhg

Programmer
Nov 30, 2006
38
US
Should be simple but coming from ColdFusion to ASP it has me perplexed.

I have a page that passes id like
I need to pass that ID in a new href tag. This is what I have and it bombs:
Code:
<a href="[URL unfurl="true"]http://www.montereyleads.com/contactform.cfm?prodline=1&source=1&boat=<%Request.QueryString("ID")%>"[/URL] target="_blank" onmouseover="MM_swapImage('Button_Brochure','','images/Button_dlbrochure2.gif',1)" onmouseout="MM_swapImgRestore()"><img src="images/Button_dlbrochure1.gif" alt="DownloadBrochure" name="Button_Brochure" width="210" height="61" border="0" id="Button_Brochure" /></a>
Any help you can provide would be greatly appreciated.
 
What is the result of the code that you pasted above?

What does the HREF look like when you do "View Source" in your browser?
 
How about this?

Code:
<a href="[URL unfurl="true"]http://www.montereyleads.com/contactform.cfm?prodline=1&source=1&boat=<%=Request.QueryString("ID")%>"[/URL] target="_blank" onmouseover="MM_swapImage('Button_Brochure','','images/Button_dlbrochure2.gif',1)" onmouseout="MM_swapImgRestore()"><img src="images/Button_dlbrochure1.gif" alt="DownloadBrochure" name="Button_Brochure" width="210" height="61" border="0" id="Button_Brochure" /></a>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top