asp:Hyperlink in Gridview open PDF in new browser window
问题 I currently have a gridview that dynamically creates asp:Hyperlinks to PDF files. Right now, the url just downloads the file to the local machine. What's the easiest way to get them to open in a new window so the user has the option to print or download. Chrome automatically downloads it. IE asks to open or save it. I just want it to open in a browser window. <asp:TemplateField HeaderText="Name"> <ItemTemplate> <asp:HyperLink ID="lblProductName" runat="server" Text='<%# Eval("name") %>'