ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.ViewDownload<p>Remove</p> <pre class="brush: xml"> Target=&#34;_blank</pre> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/133835/ViewDownload/https://www.aspforums.net:443/Threads/133835/ViewDownload/Mon, 13 Jan 2014 04:46:50 GMTViewDownload<p>Problem isn't arising in the formate sir actually our content isn't OPENING UP FOR VIEW PURPOSE FOR FILES it's working well for images view!!</p>https://www.aspforums.net:443/Threads/133835/ViewDownload/https://www.aspforums.net:443/Threads/133835/ViewDownload/Mon, 13 Jan 2014 04:54:23 GMTViewDownload<p>Files cannot be viewed in browser</p> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/133835/ViewDownload/https://www.aspforums.net:443/Threads/133835/ViewDownload/Mon, 13 Jan 2014 05:03:30 GMTViewDownload<p>I have Tested this Sample and its running according to your requirement but in IE its getting download if i cick on the name of file.</p> <p>HTML:</p> <pre class="brush: xml">&lt;form id=&#34;form1&#34; runat=&#34;server&#34;&gt; &lt;div&gt; &lt;asp:GridView ID=&#34;gvDemo2&#34; runat=&#34;server&#34; AutoGenerateColumns=&#34;false&#34;&gt; &lt;Columns&gt; &lt;asp:BoundField DataField=&#34;FileId&#34; HeaderText=&#34;Id&#34; ItemStyle-Width=&#34;100&#34; /&gt; &lt;asp:BoundField DataField=&#34;Name&#34; HeaderText=&#34;Name&#34; ItemStyle-Width=&#34;100&#34; /&gt; &lt;asp:TemplateField HeaderText=&#34;List of Files&#34;&gt; &lt;ItemTemplate&gt; &lt;asp:HyperLink ID=&#34;Hyp1&#34; Target=&#34;_blank&#34; runat=&#34;server&#34; Width=&#34;100px&#34; Text=&#39;&lt;%#Eval(&#34;Name&#34;)%&gt;&#39; NavigateUrl=&#39;&lt;%#Eval(&#34;Path&#34;)%&gt;&#39;&gt;&lt;/asp:HyperLink&gt; &lt;/ItemTemplate&gt; &lt;/asp:TemplateField&gt; &lt;/Columns&gt; &lt;/asp:GridView&gt; &lt;/div&gt; &lt;/form&gt;</pre> <p>C#:</p> <pre class="brush: csharp">protected void Page_Load(object sender, EventArgs e) { if (!this.IsPostBack) { this.PopulateGrid2(); } } private void PopulateGrid2() { DataTable dt2 = new DataTable(); dt2.Columns.AddRange(new DataColumn[3]{ new DataColumn(&#34;FileId&#34;, typeof(int)), new DataColumn(&#34;Name&#34;, typeof(string)), new DataColumn(&#34;Path&#34;, typeof(string))}); dt2.Rows.Add(1, &#34;Jake&#34;, &#34;Files/Doc1.pdf&#34;); this.gvDemo2.DataSource = dt2; this.gvDemo2.DataBind(); }</pre> <p>Which browser you are using.</p>https://www.aspforums.net:443/Threads/133835/ViewDownload/https://www.aspforums.net:443/Threads/133835/ViewDownload/Mon, 13 Jan 2014 05:32:48 GMTViewDownload<p>Google!! And yeah it's working for images but as far &nbsp;as any file is concerned whether it's an empty doc it's simply getting downloaded instead of opening for view purpose in a new window!! Am i clear sir?? Tell me solution for this problem</p>https://www.aspforums.net:443/Threads/133835/ViewDownload/https://www.aspforums.net:443/Threads/133835/ViewDownload/Mon, 13 Jan 2014 05:57:31 GMTViewDownload<p>I have already told, unless you are using some document viewer by buying it from some company it is not possible to view documents in browser</p> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/133835/ViewDownload/https://www.aspforums.net:443/Threads/133835/ViewDownload/Mon, 13 Jan 2014 06:06:09 GMT