title: Whenever i click on view online button my file doesn't show proper pdf in asp.net
body: <p>when I click on it my file doesn't open properly <a href="https://i.stack.imgur.com/72nkv.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <pre><code>string filePath = (sender as LinkButton).CommandArgument;
              Response.ContentType = ContentType;
  
            //  Response.AppendHeader("Content-Disposition", "attachment; filename=" + Path.GetFileName(filePath));
              Response.AddHeader("Content-Disposition", "inline; filename"+Path.GetFileName(filePath)+".pdf");
  
              Response.WriteFile(filePath);
              Response.End();
          }
  </code></pre>