W3C home > Mailing lists > Public > www-validator@w3.org > December 2001

[www-validator] <none>

From: kamlesh Andhare <kamleshda@hotmail.com>
Date: Thu, 6 Dec 2001 16:16:45 -0500 (EST)
To: www-validator@w3.org
Cc: JDIEPPA@mbakercorp.com, dg@humorist.ru
Message-ID: <F131T6Ssuot0OUIHNkj0000b197@hotmail.com>
I have bunch of ASP Files which are Passing the Querystring through the
URL.
To make the HTML Page W3c Compliant I changed the
url from
          a.asp?a=b&b=c
to        a.asp:a=b&amp;b=c

Which makes my page W3C Compliant,
but now when I am running the page, Asp's Request.Querystring()
is not working
      I could get the Value for "a" by saying request.querystring("a")
      but value for the "B" is not present.

what should the the solution for this.

Please suggest.

Kamlesh

Attached is the FAQ message posted on the W3c FAQ



Message-ID: <000701c15665$b9eac120$455dd1d8@CR194084C>
From: "Dmitri Klimenko" <dg@humorist.ru>
To: "Jarrod Dieppa" <JDIEPPA@mbakercorp.com>
Cc: <www-validator@w3.org>
Date: Tue, 16 Oct 2001 13:12:24 -0400
Subject: Re: asp URLs

Ampersands have special meaning in HTML, they are used to encode entities
(like &copy; , &quot;)
When an ampersand must be used for some other purpose in a page, for
example, as a parameter separator in a query string, it should be encoded as
&amp; so instead of
<a href="page.asp?a=b&c=d">page</a>
you should write
<a href="page.asp?a=b&amp;c=d">page</a>
Weird as it seems at first, this is the correct way of writing query
strings, it is valid in terms of HTML, and works in all compliant browsers.

>I have a bunch of ASP pages that do not validate to the HTML 4.01
transitional standard because they have hyperlinks with an ampersand in the
URL. The validator says that whatever is after the ampersand is an unknown
entity. I was wondering if this is just a limitation of the validator or can
I really not use ampersands in a hyperlink url? If I can't, is there a way
around it?



_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
Received on Tuesday, 11 December 2001 18:11:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:00 GMT