I am trying to create a hyperlink that combines 2 fields from a SQL table. For example, field one contains
www.test.com\documents\ field 2 contaons the documents test.pdf. when the 2 fields are are combned I would get the full URL
www.test.com\documents\test.pdf.
I created a SQL table with a SQLDatasource, and a Grid View and I added a hyperlink column with the 2 field in the
DataNavigateUrlFields = URL,Form. The source displays:
<
asp:HyperLinkField DataNavigateUrlFields="URL,Form" DataTextField="Form"HeaderText="File" />
When I display in the browser, I am only getting the 1st field to display in the source code, example www.test.com\documents\. The URL is not adding the 2nd field, which contains the PDF file.
Any help would be appreciated.
Gary