473,385 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

%23 in querystring

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=%23e fefef&amp;template=templat
e4.htm" id="Form1">

Thanks
Nov 18 '05 #1
3 3907
Jeremy,

The query string you are looking at has been urlencoded so that characters
that would normally make the url error out may be passed in the query
string. For example: %23 is the url encoding for a "#" symbol.

Here is a list of common urlencodings:

http://www.w3schools.com/html/html_ref_urlencode.asp

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Jeremy" <JA*@2.com> wrote in message
news:u9**************@tk2msftngp13.phx.gbl...
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 '&amp;'. I thought the ampersand (&) signaled another variable in the querystring - but apparently not in this case?

BG=%23efefef&amp;

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

Thanks

Nov 18 '05 #2
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 (#)

--
Hope this helps,
Zeeshan Mustafa, MCSD
"Jeremy" <JA*@2.com> wrote in message
news:u9**************@tk2msftngp13.phx.gbl...
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 '&amp;'. I thought the ampersand (&) signaled another variable in the querystring - but apparently not in this case?

BG=%23efefef&amp;

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

Thanks

Nov 18 '05 #3
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.

"S. Justin Gengo" <sjgengo@aboutfortunate[no-spam].com> wrote in message
news:10*************@corp.supernews.com...
Jeremy,

The query string you are looking at has been urlencoded so that characters
that would normally make the url error out may be passed in the query
string. For example: %23 is the url encoding for a "#" symbol.

Here is a list of common urlencodings:

http://www.w3schools.com/html/html_ref_urlencode.asp

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Jeremy" <JA*@2.com> wrote in message
news:u9**************@tk2msftngp13.phx.gbl...
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 '&amp;'. I thought the ampersand (&) signaled another variable in
the querystring - but apparently not in this case?

BG=%23efefef&amp;

Here's the entire querystring:
<form name="Form1" method="post"

action="Select_Destination.aspx?PG=ID3&amp;BG=%23e fefef&amp;template=templat e4.htm" id="Form1">

Thanks


Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Arpan | last post by:
A link has the following URL: <a href="Page1.asp?cname=<%= Request.QueryString("cname") %>&cadd1=<%= Request.QueryString("cadd1") %>&cadd2=<%= Request.QueryString("cadd2") %>&cplace=<%=...
2
by: Mikael | last post by:
Hi All! I have a problem here and i can't see what it is... My parameters (value) are shopped off. exampe "Hello world" will end up like "hello" How should i adjust the syntax to get a whole...
1
by: lion | last post by:
my Problem: a query string passed into a html page doesn't display correctly on a mac I am just using html and javascript (no ASP, PHP or server side scripting) This is the query string:...
5
by: David | last post by:
Hello I need to take some values and place them in a string in the format of a querystring. Lets say I have: string State = "ACT"; string SearchString = "Tax"; int MinRelevance = 50;
4
by: Raterus | last post by:
Howdy, Simple question, but I can't figure out how to do it. I have a a page which is called initially with a querystring. After I get the querystring values, I don't need the querystring to...
12
by: Alex | last post by:
I have a question about determining if one QueryString keys exists. The idea is, if this key exists, than its presence is enough to indicate that its value is true. For example ... ...
3
by: Dan Sikorsky | last post by:
How can I get the Querystring passed to the Referring Page from its referrer? I don't want the querystring coming to my current page. I want the querystring that came to the referring page, so...
1
by: beebee | last post by:
Hi all. I am having a bit of difficulty: Here is what is happening: I have an application that spits out a thankyou.aspx page and i would like to pass it the querystring values it had collected...
4
by: =?Utf-8?B?RVcgTmV3Ymll?= | last post by:
My apologies in advance if there is a better forum for this question. Given the following snippet: <script type="text/c#" runat="server"> protected void Page_Load(Object Sender, EventArgs e)...
3
by: pingsheng | last post by:
Dear all, I have a form with dynamically created input fields. These fields go to next page for submitting into SQL database. The thing is all fields are the same but 4 fields. So each record...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.