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
Post a Comment