I would Like to ask that i am having a problem if i click on a hyperlink in a gridview for view purpose in a _blank window it work well for images but for file like .docx .pdf .ppt it download those files rather than opening them in a window what would be problem?? what should i do??
I'm using this code in aspx file!!
<asp:TemplateField HeaderText="List of Files">
<ItemTemplate>
<asp:HyperLink ID="Hyp1" Target="_blank" runat="server" Width="100px" Text='<%#Eval("Bui_File")%>' NavigateUrl='<%#Eval("Bui_File")%>'></asp:HyperLink>
</ItemTemplate>
</asp:TemplateField>