Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
4
Reply
I would like to view a PDF file directly in my browser.
Avishkar Tamang
Mar 15 2017 7:16 AM
188
Reply
I would like to view a PDF file directly in my browser. I hvae the controller wriiten so far
public ActionResult GetPdf(string fileName)
{
string filePath = "~/Content/Images/Vintagemenu/" + fileName;
Response.AddHeader("Content-Disposition", "inline; filename=" + fileName);
return File(filePath, "application/pdf");
}
I need help with the view.
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
Disable CheckBox should not be select by select all chkbox
how to back Partial view page in mvc?