I have a program that searches a text file for a particular string and pulls some information to display in a listbox. That information can be used to build a url that I want to display in the listbox.
This is kind of what I want to do:
VB Code:
For Each dElement As String In dArray link = "<a href=" + Chr(34) + "http://www.company.com/info.asp?info=" + dElement + Chr(34) + ">" + dElement + "</a>" ListBox1.Items.Add(link) Next
but it ends up just showing:
rather than have "1234" be a link.<a href="http://www.company.com/info.asp?info=1234">1234</a>
I've looked at the link class, but when I try to do the "Imports System.Web.UI.MobileControls" the intellisense doesn't know what that is.
Any ideas on what I'm doing wrong?




Reply With Quote