Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Mobile / January 2004

Tip: Looking for answers? Try searching our database.

Ampersand Causing Problems in URL

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
KittyHawk - 22 Jan 2004 22:41 GMT
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?
Ed Kaim [MSFT] - 23 Jan 2004 05:05 GMT
If you want to have an ampersand in the query string, you need to encode it
as "%26".

> 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?
KittyHawk - 24 Jan 2004 16:41 GMT
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] - 26 Jan 2004 01:38 GMT
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.

> 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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.