dropdownlist控件这么设置 <asp:dropdownlist id="dropdownlist1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="dropdownlist1_change"></asp:dropdownlist>然后在后台这么写代码 sub dropdownlist1_change(ByVal sender As Object, ByVal e As EventArgs)textbox1.text="sssssss" end sub
<asp:dropdownlist id="dropdownlist1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="dropdownlist1_change"></asp:dropdownlist>然后在后台这么写代码
sub dropdownlist1_change(ByVal sender As Object, ByVal e As EventArgs)textbox1.text="sssssss" end sub
然后是 DropDownList 的 Changed 事件
private void DropDownList1_SelectedIndexChanged(object sender, System.EventArgs e)
{
textbox1.text=DropDownList1.SelectedItem.Text;
}