为什么没有触发这个事件
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
SqlConnection sqlConn = new SqlConnection("...");
sqlConn.Open();
string strGetCustInfo = "select ... from ... where ...='" + DropDownList1.Text + "'";
SqlCommand sqlCmd = new SqlCommand(strGetCustInfo, sqlConn);
TextBox5.Text = sqlCmd.ExecuteScalar().ToString();
sqlCmd.Dispose();
sqlConn.Close();
}
为什么我改变了DropDownList1的Item,没有触发这个事件?