I am using a cookie to write a condtional href to download whitepapers where if the user clicks on the whitpaper link, if it's their first time at the site, they need to fill out an info form and are directed to the form page.
If they have already done that than the link initiates the whitepaper download, in this case a PDF.
Here is my code:
<%
Response.Cookies("whitepaper") = "yes"
%>
<a href="<%If Request.Cookies("whitepaper")="yes" Then
response.write(â/index_files/products/white_papers/mr30_wp_final.pdfâ)
Else
response.redirect(â/company/wp_submit/white_paper_submit_form.aspâ)
end if%>">
</a>
here is the error:
Error Type:
Microsoft VBScript compilation (0x800A0408)
Invalid character
/products/white_papers.asp, line 37, column 15
response.write(â/index_files/products/white_papers/mr30_wp_final.pdfâ)
--------------^
where line 37 is "response.write" etc....
Any suggestions are welcome....
Dan Englander
http://danenglander.net/
------------------------