Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display Data as Hyperlink 1

Status
Not open for further replies.

Zurich98

Programmer
Apr 8, 2006
64
US
I SQL 2k table with a text column storing a path to file. I would like to display the path as a hyperlink in vb .net for the user to click on the link to retrieve a file associated to the path. is it possible to accomplish this in vb .net? if so, can you please provide the code of how i can accomplish this task. your help/suggestion is greatly appreciated. Thanks
 
I don't have time to write the code for you but you can try using a linklabel object.
 
thanks for your response. i'll try. if you have sometimes, please give a sample code.
 
Code:
 Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel1.LinkClicked
        Dim thisfile As String, retval
        thisfile = "Readme.txt"
        retval = System.Diagnostics.Process.Start(thisfile)
    End Sub


make sure you have the file in you bin of the project
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top