Private Sub MyListBox_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles
MyListBox.PreRender
Dim i As Integer = 0
Dim myToolTips As String() = MyHiddenField.Value.Split("|")
For Each item As ListItem In MyListBox.Items
item.Attributes.Add("title", myToolTips(i))
i = i + 1
Next
End Sub
Thank you to http://msmvps.com/blogs/deborahk/archive/2010/01/31/asp-net-listbox-tooltip.aspx
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment