Usha Talakanti

Usha Talakanti

  • NA
  • 31
  • 24.7k

Open PDF Inline in asp.net mvc

Feb 9 2016 6:55 AM
i want to open the pdf  inline in a new tab in  asp.net mvc4.
 
i have done in asp.net it is working 
Response.ContentType = "application/pdf";
Response.AddHeader("content-disposition", "inline;filename=PatientDailyReport.pdf");
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.BinaryWrite(_byte);
Response.End();
but in mvc it is not working 

Answers (1)