How to: Respond to User Clicks in BulletedList Web Server Controls (Visual Studio)
You can configure acontrol to display controls as the bulleted list items. When users click a button, the control posts the page back to the server and gives you an opportunity to run code in response to the click.
To respond to a user click in a BulletedList Web server control
In Design view, double-click the BulletedList control and then add a handler for the BulletedList control'sevent.
In the event handler, get theproperty of the value passed to the handler.
Using the index, get the appropriate item from the control and then get the item'sand properties.
The following code example shows a Click event handler for a BulletedList control. The handler displays which list item the user clicked.
Protected Sub BulletedList1_Click(ByVal sender As Object, _ ByVal e As System.Web.UI.WebControls.BulletedListEventArgs) _ Handles BulletedList1.Click Dim position As Integer = e.Index Dim li As ListItem = BulletedList3.Items(position) Label1.Text = "You selected = " & li.Text & _ ", with value = " & li.Value End Sub