vbdotnetboy, as per usual, that thought hit me 3 minutes after I hit the post button.
So now I have:
VB Code:
For Each da As String In DArray defLink.Text = da defLink.NavigateUrl = "http://www.company.com/infolog.asp?info=" + da ListBox1.Items.Add(defLink) Next
Stepping through the code, the attributes get populated correctly, but the listbox displays "System.Web.UI.MobileControls.Link".
Hmmm... VBnetFan at first I didn't think your idea applied, but now I have an idea. Say that DArray is already sorted and I do:
This populates the listbox. Then I could get the selectedindexchanged event to trigger it like this:VB Code:
For Each da As String In DArray ListBox1.Items.Add(da) Next
The problem is getting the text of the selected index. Any idea on how to do that?VB Code:
Private Sub ListBox1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged Process.Start("http://www.company.com/infolog.asp?info=" + sender.text) End Sub




Reply With Quote