%23 in querystring

J

Jeremy

I'm trying to understand the following part of a QueryString value: What
does the %23 mean? I presume that the 'efefef' is a color (RGB) value. What
about the '&'. I thought the ampersand (&) signaled another variable in
the querystring - but apparently not in this case?

BG=%23efefef&

Here's the entire querystring:
<form name="Form1" method="post"
action="Select_Destination.aspx?PG=ID3&amp;BG=%23efefef&amp;template=templat
e4.htm" id="Form1">

Thanks
 
M

M. Zeeshan Mustafa

We do url encoding and decoding because in the RFC 1738
specification of URL (which defines the standards of url),
it limits URL to contain only 0-9 a-z, A-Z and $-_.+!*'(), characters.

So we needed a way to pass those characters which are not
supported by url specification.. so we have a way to pass the chars
in encoded format (%23) in url and convert it back to its orignal
form on server side (#)
 
K

Kevin Spencer

In addition, you can use HttpUtility.UrlDecode() to convert the special
characters back to their original.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top