ASP Net Controls ASP.Net Tutorial

<%@ page language="VB" %>

    Protected Sub Dropdownlist1_SelectedIndexChanged(ByVal sender As Object, _
       ByVal e As System.EventArgs)
         Response.Write("You selected item number " & _
           DropDownList1.SelectedValue & "
")
         Response.Write("You didn't select item number " & _
           DropDownList1.Items(1).Value)
    End Sub



    DropDownList Server Control


    
                 OnSelectedIndexChanged="Dropdownlist1_SelectedIndexChanged">
            First Choice
            Second Choice
            Third Choice