c# - How to map path to a directory other than the root directory -


how if need map path directory other root directory in c# application.

what tried is:

public actionresult search()     {         return file("c:/users/rehan/desktop/pro collection/xyz.pdf", "pdf");     } 

but unfortunately no avail.

you have use fileresult

public fileresult search()     {         return new filepathresult("c:/users/rehan/desktop/pro collection/xyz.pdf", "application/pdf");     } 

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -