dropdownlist & databind question

llduan

Newcomer
Joined
Feb 26, 2004
Messages
1
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!
 
It should work fine.

I will suggest you upload your source file here, maybe other source affect your result
 
Back
Top