hello friends,
In my website when a user clicks on a download button in gridview the corresponding file in the server directory is downloaded...but when i tried to download a file whose name was containing a "&" i got an exception...
Could not find file 'D:\Work\WebSite4\StoredFiles\Resume & Cover Letter Secrets Revealed.pdf'. Could not find file 'D:\Work\WebSite4\StoredFiles\Resume & Cover Letter Secrets Revealed.pdf'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileNotFoundException: Could not find file 'D:\Work\WebSite4\StoredFiles\Resume & Cover Letter Secrets Revealed.pdf'.
Source Error:
Line 55: Respo ...
Go to the complete details ...