I've to show with a browser some files that contains this # on the name. Using it on the url the file seems to be not available.
How can I configure IIS or my web.config to allow this?
thanks, Andrea
I've to show with a browser some files that contains this # on the name. Using it on the url the file seems to be not available.
How can I configure IIS or my web.config to allow this?
thanks, Andrea
That's not how URLs work.
The #
character is used to denote the hash portion; anything after it is not sent to the server.
You need to escape the #
as %23
You need to UrlEncode the file name as you build your URL. This will escape the '#' character, allowing the browser to interpret it appropriately.
Proper encoding is very important for preventing Cross-Site Scripting attacks against your application, which can be devastating.