How to open pdf file directly without asking open,save options(prompt window)
<p>I want open pdf file directly without asking open,save options(prompt window).In this temppath is path to the pdf in my website.But using this code new window is opening but file not opening.When I copy the tempath directly to the brower its opening.</p>

<p>Code:</p>

<pre><code>string url = tempPath;
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), Guid.NewGuid().ToString(), "window.open ('" + url + "');", true);
</code></pre>
