ASP.NET(C#)开发WebForm
我在DropDownList中添加了一些Item
<asp:dropdownlist id=dropType AutoPostBack=False runat=server>
      <asp:ListItem >--请选择类型--</asp:ListItem>
      <asp:ListItem>a</asp:ListItem>
      <asp:ListItem>b</asp:ListItem>
      <asp:ListItem>c</asp:ListItem>
</asp:dropdownlist>
我想要通过一个Button控件来选择其中的数据,如:当按下Button控件的时候,该DropDownList中的数据显示为"--请选择类型--"。请问事件代码要在怎么写啊??我尝试过了给SelectedIndex,SelectedValue属性赋值,但是没有成功!请大侠指点一下,谢谢!学习,关注……