Results 1 to 7 of 7

Thread: adding links to a listbox [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2003
    Location
    Chicagoland
    Posts
    92

    Resolved adding links to a listbox [RESOLVED]

    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:
    1. For Each dElement As String In dArray
    2.                     link = "<a href=" + Chr(34) + "http://www.company.com/info.asp?info=" + dElement + Chr(34) + ">" + dElement + "</a>"
    3.                     ListBox1.Items.Add(link)
    4.                 Next

    but it ends up just showing:
    <a href="http://www.company.com/info.asp?info=1234">1234</a>
    rather than have "1234" be a link.

    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?
    Last edited by shadowfyre; Feb 1st, 2005 at 03:48 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width