Interview Questions

If you want to pass the contents of the strName variable in a hyperlink, which line of code would you use?

ASP Interview Questions and Answers


(Continued from previous question...)

59 If you want to pass the contents of the strName variable in a hyperlink, which line of code would you use?

< %
strName="John Smith"
% >
Referring to the above, if you want to pass the contents of the strName variable in a hyperlink, which line of code would you use?



A. This cannot be done. The anchor is on the client and the variable is on the server.
B. href="Encode.asp?name=" > click here

(Continued on next question...)

Other Interview Questions