Open pdf file in browser with url generated in asp.net
<p>I'm working with .net 4.0 in asp.net.</p>

<p>I have folder on web server having some pdf file, I display its (File Name) Name  in gridview then i want to do "when i click on Item in grid view then it open that pdf file and generate url with file in browser."</p>

<p>I'm using Following Code</p>

<pre><code>GridViewRow row = (GridViewRow)((LinkButton)e.CommandSource).Parent.Parent;
LinkButton hk = (LinkButton)gvFiles.Rows[row.RowIndex].FindControl("lnkbtnTitleView");
string s = Server.MapPath("~/AppName/App_" + dtFiles.Rows[0]["ENewsLetterID"].ToString() + "_1.PDF");
hk.Attributes.Add("onclick","window.open('"+s+"')");
</code></pre>
