M
^MisterJingo^
Hi all,
I've created an app which allows a directory to be browsed. If a file
is clicked, I use ResolveUrl() to convert the directory path to a url
path. I then attach the file name to the end of it.
This works perfectly for all files but one. The name of the file is
"lead ECG B&W.pdf" It seems the '&' is the cause as all characters
after it (including it) are missing from the url. I'm unsure how to get
over this problem, so any help would be appreciated.
Thanks.
Ps. THe code I use can be found here:
tempFile = Request.QueryString["f"];
url += ResolveUrl(getLocation()) + tempFile;
F contains the file name.
url is a string which contains the the website base address.
getLocation contains the current location in the directory structure.
I know I can use stringbuilder to make it more efficient - I will do
this, but i'm currently just trying to get it to work,
I've created an app which allows a directory to be browsed. If a file
is clicked, I use ResolveUrl() to convert the directory path to a url
path. I then attach the file name to the end of it.
This works perfectly for all files but one. The name of the file is
"lead ECG B&W.pdf" It seems the '&' is the cause as all characters
after it (including it) are missing from the url. I'm unsure how to get
over this problem, so any help would be appreciated.
Thanks.
Ps. THe code I use can be found here:
tempFile = Request.QueryString["f"];
url += ResolveUrl(getLocation()) + tempFile;
F contains the file name.
url is a string which contains the the website base address.
getLocation contains the current location in the directory structure.
I know I can use stringbuilder to make it more efficient - I will do
this, but i'm currently just trying to get it to work,