Passing a querystring value that contains '&'
Hi,
How can I pass a querystring value that contains an & ?
I have it enclosed in quotes, which I thought would prevent problems.
I'm reading the information from a database - the actual line of code is:
<a href='ViewItem.asp?Category="BookCdDvd"&Item="<%= objRS("Item") %>"'><%= objRS("Item") %></a>
When I rest the mouse over the link, this is what's displayed in the status bar :
ViewItem?Category="BookCdDvd"&Item="Masked & Anonymous"
It keeps stopping at the &, and giving me this error :
Microsoft JET Database Engine (0x80040E14)
Syntax error in string in query expression 'Item = "Masked'.
Any suggestions?
Thanks,
Jennie.
|