• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 285
  • Last Modified:

How to add Variable to an HREF in .ASP with VbScript

This is what I'm trying to do:

SomeString = "Passed Variable"
Response.write("<a href=""Default.asp?" & someString &">"The Link"</a>")

Open in new window


The page should show a link displayed as "The Link" and direct the user to "Default.asp?Passed Variable"
0
Darkejo1
Asked:
Darkejo1
1 Solution
 
Paul MacDonaldDirector, Information SystemsCommented:
...
Response.write("<a href='Default.asp?var=" & someString &"'>The Link</a>")
...
0
 
Chris BottomleySoftware Quality Lead EngineerCommented:
Try

SomeString = "Passed Variable"
Response.write("<a href=""Default.asp?""" & someString &">The Link</a>")
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now