Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

encoding url in web.config

Tags:

asp.net

I have a url that I would like to put into my web.config file.

http://google.com?parcel&bob&&smith

I imagine that the .net run time is upset with the ampersand's so i encoded them to be &amp.

http://google.com?parcel&ampbob&amp&ampsmith

This also doesn't work. Any ideas would be great, if you could supply a link to the documentation of why this is that would be even better. Thank you very much!!!


2 Answers

did you try this? (semicolons)

http://google.com?parcel&bob&smith
like image 149
brianc Avatar answered Apr 21 '26 15:04

brianc


The proper encoding for the ampersand is & You are missing the ; at the end.

like image 20
Andrew Barber Avatar answered Apr 21 '26 16:04

Andrew Barber



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!