I cannot get the correct drop down list value from a drop down I have on my
web form. I get the initial value that was loaded in the list.
It was asked by someone else what the autopostback was set to...it is set to
false.
Can someone show me what I am doing wrong and tell me the correct way? Thank
you.
In the page load event, I am doing the following:
//Code I use to populate the dropdown list.
ddAssignedTo.Da taValueField = "PersonnelI D";
ddAssignedTo.Da taTextField = "DisplayNam e";
ddAssignedTo.Da taSource = Personnel.List( );
ddAssignedTo.Da taBind();
//Code I use to show the value from the database.
ddAssignedTo.Se lectedValue = problem.AddedBy .PersonnelId.To String();
When I change the drop down to another item in the list, and click my update
button, I get the previous value that was selected on page load.
//Code I use for that is:
ddAssignedTo.Se lectedValue
What am I doing wrong...thank you.
web form. I get the initial value that was loaded in the list.
It was asked by someone else what the autopostback was set to...it is set to
false.
Can someone show me what I am doing wrong and tell me the correct way? Thank
you.
In the page load event, I am doing the following:
//Code I use to populate the dropdown list.
ddAssignedTo.Da taValueField = "PersonnelI D";
ddAssignedTo.Da taTextField = "DisplayNam e";
ddAssignedTo.Da taSource = Personnel.List( );
ddAssignedTo.Da taBind();
//Code I use to show the value from the database.
ddAssignedTo.Se lectedValue = problem.AddedBy .PersonnelId.To String();
When I change the drop down to another item in the list, and click my update
button, I get the previous value that was selected on page load.
//Code I use for that is:
ddAssignedTo.Se lectedValue
What am I doing wrong...thank you.
Comment