title: MVC open PDF in pop up window
body: <p>In my application i have a pdf document in my solution and when user clicks a particular button the document must be opened in a popup window. I could open it in the same window by just returning the filestream object .The code i used.</p>
  
  <pre><code>public ActionResult ShowPdf()
      {
          if (System.IO.File.Exists(Server.MapPath("~/downloads/MyPdf.pdf")))
          {
              string pathSource = Server.MapPath("~/downloads/MyPdf.pdf");
              FileStream fsSource = new FileStream(pathSource, FileMode.Open, FileAccess.Read);
  
              return new FileStreamResult(fsSource, "application/pdf");
          }
          else
          {
            return RedirectToAction("Index", "User");
          }
      }
  </code></pre>
  
  <p>How can i load the same in a popup window</p>
  
  <p>Thanks in advance</p>