Locked Hyperlink that combines 2 SQL fields

  • Monday, May 09, 2005 2:57 PM
     
     
    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

All Replies

  • Friday, May 13, 2005 8:53 PM
    Moderator
     
     Answered
    Gary:
    This forum is for questions related to the Visual Studio help system. The best place for questions on asp.net is probably http://forums.asp.net/ . Good luck!

    Michael Blome
    Visual C# Documentation Manager