Posted on: 4/8/2015 8:14:56 AM | Views : 716

In my webpage I have a datagridview which loads data from database. One of the templatefield is button which is used to open a document whose path is in database.how can I open the document in new window.
<asp:GridView ID="dgvdocumentsarchives" runat="server" AllowPaging="false" AutoGenerateColumns="False" EmptyDataText="No details added" PageSize="6" RowStyle-Wrap="false" class="table table-striped table-bordered table-hover" Width="100%" onrowcommand="dgvdocumentsarchives_RowCommand">
<Columns>
<asp:BoundField DataField="details" HeaderText="Details" > <HeaderStyle /> <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" /> </asp:BoundField>
<asp:TemplateField> <ItemTemplate> Go to the complete details ...