Click to See Complete Forum and Search --> : the # in a querystring


lcscne
02-23-2004, 11:18 AM
does the # (pound sign) have some special significance in a querystring? I'm trying to pass "#FAFAFA" as a valid value and it seems to be ignoring all info after the #. Thanks

stu_pb
02-23-2004, 11:35 AM
If I remember correctly the # is an anchor, the page will scroll to the tag <a name="#FAFAFA"></a>


use the Server.URLEncode function when creating the querystring. This will convert the # symbol to a useable format.

lcscne
02-23-2004, 02:23 PM
Originally posted by stu_pb
use the Server.URLEncode function when creating the querystring. This will convert the # symbol to a useable format.

Yup, the Server.URLEncode is what I need. Thanks man/mam.