[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.mobile

Ampersand Causing Problems in URL

=?Utf-8?B?cm9kY2hhcg==?=

1/22/2004 10:41:00 PM

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.

What is the best solution to this?
3 Answers

Ed Kaim [MSFT]

1/23/2004 5:06:00 AM

0

If you want to have an ampersand in the query string, you need to encode it
as "%26".

"KittyHawk" <anonymous@discussions.microsoft.com> wrote in message
news:CE6657C8-392A-4FF7-AB09-E02FC57EB400@microsoft.com...
> I''ve got an ASP.NET application using the MMIT 1.0. The app builds URL
query strings dynamically. I''ve always used the &amp; or &#38; 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.
>
> What is the best solution to this?


=?Utf-8?B?cm9kY2hhcg==?=

1/24/2004 4:41:00 PM

0

I''m not sure I understand. Isn''t the ampersand required to separate parameters in a query string? Using the hex equivalent "%26" as my separator does not work.

Ed Kaim [MSFT]

1/26/2004 1:39:00 AM

0

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.

"KittyHawk" <anonymous@discussions.microsoft.com> wrote in message
news:AC8B2F92-0EF9-4087-8D94-EF25FECF7953@microsoft.com...
> I''m not sure I understand. Isn''t the ampersand required to separate
parameters in a query string? Using the hex equivalent "%26" as my separator
does not work.