dropdownlist.aspx
<html>
<head><title>My schedule</title>
<script
runat="server">
sub Page_Load
if Not
Page.IsPostBack then
dim
myCourses=New ArrayList
myCourses.Add("CIS13")
myCourses.Add("CIS44")
myCourses.Add("CIS45")
myCourses.Add("CIS46")
myCourses.Add("CIS47")
myCourses.Add("CIS48")
myCourses.Add("CIS49")
myCourses.Add("CIS50")
myCourses.Add("CIS53")
myCourses.Add("CIS63")
myCourses.Sort()
crs.DataSource=myCourses
crs.DataBind()
end if
end sub
sub showSchedule(s as Object,e As EventArgs)
lblSchedule.text=lblSchedule.text & "
" & crs.SelectedItem.Text
end sub
</script>
</head>
<body>
<form runat="server">
<asp:DropDownList id="crs"
runat="server"
AutoPostBack="True"
onSelectedIndexChanged="showSchedule" />
<p><asp:label id="lblSchedule"
runat="server" /></p>
</form>
</body>
</html>