all groups > asp.net mobile > january 2004 >
You're in the

asp.net mobile

group:

Ampersand Causing Problems in URL


Ampersand Causing Problems in URL KittyHawk
1/22/2004 2:41:06 PM
asp.net mobile: I've got an ASP.NET application using the MMIT 1.0. The app builds URL query strings dynamically. I've always used the & or & escape sequence in the past to specify an ampersand in the query string and it's worked just fine. Now, I've got users with newer WAP browsers who say that the URLs the app builds are invalid. The URL is actually displaying the escape sequence which, of course, is invalid. If I just use the ampersand it renders older WML browsers useless.

Re: Ampersand Causing Problems in URL Ed Kaim [MSFT]
1/22/2004 9:05:32 PM
If you want to have an ampersand in the query string, you need to encode it
as "%26".

[quoted text, click to view]
query strings dynamically. I've always used the & or & escape
sequence in the past to specify an ampersand in the query string and it's
worked just fine. Now, I've got users with newer WAP browsers who say that
the URLs the app builds are invalid. The URL is actually displaying the
escape sequence which, of course, is invalid. If I just use the ampersand it
renders older WML browsers useless.
[quoted text, click to view]

Re: Ampersand Causing Problems in URL KittyHawk
1/24/2004 8:41:06 AM
Re: Ampersand Causing Problems in URL Ed Kaim [MSFT]
1/25/2004 5:38:55 PM
I thought you were asking about using an ampersand as a field or a value, in
which case you'd need to encode. If the browser doesn't handle '&' in the
URL, then it's a bug because that's part of the standard.

[quoted text, click to view]
parameters in a query string? Using the hex equivalent "%26" as my separator
does not work.

AddThis Social Bookmark Button