url cannot be access
-
Hi guys, The ampersand driving me crazy. How the heck am i suppose to access the datafile. plz help https://www.mysupport.com/myhosted/MainFolder/**testFolders1&Folder**/datafile.txt
-
Hi guys, The ampersand driving me crazy. How the heck am i suppose to access the datafile. plz help https://www.mysupport.com/myhosted/MainFolder/**testFolders1&Folder**/datafile.txt
Url.Encode
I know the language. I've read a book. - _Madmatt
-
Hi guys, The ampersand driving me crazy. How the heck am i suppose to access the datafile. plz help https://www.mysupport.com/myhosted/MainFolder/**testFolders1&Folder**/datafile.txt
netJP12L wrote:
testFolders1&Folder/
Parameters after '&' is considered as a Query String. Thus, in order to use it in a vald complete URL you need to encode your URL. As Mark suggested, URL.Encode would do this for you. Encoding will convert this ampersand into it's html equivalent and thus will not make part of the text after it as query string.
-
netJP12L wrote:
testFolders1&Folder/
Parameters after '&' is considered as a Query String. Thus, in order to use it in a vald complete URL you need to encode your URL. As Mark suggested, URL.Encode would do this for you. Encoding will convert this ampersand into it's html equivalent and thus will not make part of the text after it as query string.
-
I wanted to inform you that amperson Url encoding doesn't work for IIS 7. It worksin IIS 5 and 6.
Have a look at this thread: Ampersand & the Request URL in IIS7[^] It is explained with a link of how to handle it in IE7. Hope it helps.