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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you pass a variable in a link?

Status
Not open for further replies.

sysr

Technical User
Aug 17, 2001
17
CA
How do you pass a variable in a link?

strName will not pass it's value with the following code:

<%strName=RS(&quot;OrganizationName&quot;)%>

<a href=Report.asp?Quarter=1&Name=strName>%></a>

Thank you for any help!
 
I have tried:

<%strName=RS(&quot;OrganizationName&quot;)%>

<a href=&quot;&quot;&quot; & &quot;Report.asp?Quarter=1&Name=&quot; & strName & &quot;&quot;&quot;>%></a>

Thank you for any help!
 
Response.Write &quot;<a href=Report.asp?Quarter=1Name=&quot; & _
Server.HtmlEncode(strName) & &quot;</a>&quot;
Your variable name is 1Name.
No & on the 1st parameter2, An & separates multile variables e.g.
?LastName=De+La+Croce&FirstName=Neal
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top