Yes, but I would use the
asp:DropDownList
control.
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true" />
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:DropDownList runat="server" ID="DropDownList1" AutoPostBack="true">
<asp:ListItem>Item 1</asp:ListItem>
<asp:ListItem>Item 2</asp:ListItem>
</asp:DropDownList>
<asp:Label runat="server" ID="Label1" />
</ContentTemplate>
</asp:UpdatePanel>
protected void Page_Init(object sender, EventArgs e)
{
this.DropDownList1.SelectedIndexChanged += new EventHandler(DropDownList1_SelectedIndexChange);
}
protected void DropDownList1_SelectedIndexChange(object sender, EventArgs e)
{
this.Label1.Text = (this.DropDownList1.SelectedItem != null) ? "You selected: " + this.DropDownList1.SelectedItem.Value : "";
}