我使用了以下方法让第一个项目为选中状态,但是这样不行,谁能教教我啊。代码:
 void Page_Load(object sender, EventArgs e)
    {        if (!IsPostBack)
        {
            DropDownList1.Items ["0"].Selected ;
        }
    }在第一个项目没有处于选中状态的时候,我使用了以下代码,经过调试,“DropDownList1.SelectedItem”的值为Null。代码:void Page_Load(object sender, EventArgs e)
    {        string str=DropDownList1.SelectedItem.value;
    }