Click to See Complete Forum and Search --> : problem with '&' symbol


john12
11-03-2003, 10:17 PM
I have a asp developer and working on visual interdev...

I have a problem of solving the symbol '&' in a character string, whenever I pass a parameter with the string contain '&', it truncated the rest of the string after the symbol '&'...

How to solve this problem...pls help

John

gil davis
11-03-2003, 10:24 PM
You mean passing the "&" in a query string?

Where is it being truncated?

Some code would be appreciated.

john12
11-03-2003, 11:25 PM
Let say

m_licname = "John & sons"

when pass parameter

john.asp?licname=<%=m_licname%>&deptcode=<%=m_deptcode%>

when pass to john.asp... the licname request only "john" whereas & sons and rest of the parameter is truncated...

TQ