Hi all,
I use gridview to display data from a table. In one field I have a .pdf file path. I just don't know how to make it shown in hyperlink. Any help is greatly appreciated.
(in SQL table that field has the value of C:\temp\filename.pdf)
in asp.net page my code looks like this
<asp:GridView ID="gvViewStatus" runat="server" BackColor="White"
BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" CellPadding="4"
DataSourceID="SqlDataSource1" AutoGenerateColumns="False" >
<RowStyle BackColor="White" ForeColor="#330099" />
<Columns>
<asp:BoundField DataField="doc_path" HeaderText=".pdf file path" SortExpression="doc_path" >
<FooterStyle HorizontalAlign="Left" />
</asp:BoundField>
<asp:CommandField ShowEditButton="True" />
</Columns>
Thank you,
I use gridview to display data from a table. In one field I have a .pdf file path. I just don't know how to make it shown in hyperlink. Any help is greatly appreciated.
(in SQL table that field has the value of C:\temp\filename.pdf)
in asp.net page my code looks like this
<asp:GridView ID="gvViewStatus" runat="server" BackColor="White"
BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" CellPadding="4"
DataSourceID="SqlDataSource1" AutoGenerateColumns="False" >
<RowStyle BackColor="White" ForeColor="#330099" />
<Columns>
<asp:BoundField DataField="doc_path" HeaderText=".pdf file path" SortExpression="doc_path" >
<FooterStyle HorizontalAlign="Left" />
</asp:BoundField>
<asp:CommandField ShowEditButton="True" />
</Columns>
Thank you,