private void Page_Load(object sender, System.EventArgs e)
{
if(!IsPostBack)
{
DropDownList1.DataSource =CreateDataSource(); DropDownList1.DataTextField =CreatDataText; DropDownList1.DataValueField =CreatDataValue; DropDownList1.DataBind ();
}
..........
}
when the page is loaded and I select the item of the dropdownlist and then click the "confirm",the dropdownlist.selectitem.text is not I choosed!why?how to do?
please help me!
{
if(!IsPostBack)
{
DropDownList1.DataSource =CreateDataSource(); DropDownList1.DataTextField =CreatDataText; DropDownList1.DataValueField =CreatDataValue; DropDownList1.DataBind ();
}
..........
}
when the page is loaded and I select the item of the dropdownlist and then click the "confirm",the dropdownlist.selectitem.text is not I choosed!why?how to do?
please help me!