Agree with the Solution #1.
Well, based on your query what I understood is you want to open a PDF file in browser, (Correct me if I'm wrong please.) right ?
So here's what you can do:
string path = Server.MapPath("mypdfdocument.pdf");
WebClient client = new WebClient();
Byte[] buffer = client.DownloadData(path);
if (buffer != null)
{
Response.ContentType = "application/pdf";
Response.AddHeader("content-length", buffer.Length.ToString());
Response.BinaryWrite(buffer);
}
source from [here][^]
Hope it helps.
-KR