Basic C# and asp questions with oracle: #2

how do i get the drop down lists to keep the value that was selected on a postback?
Who is Participating?
jj819430Connect With a Mentor Commented:
You only want to bind a control again when it is being manipulated on the backend.... such as you have a new set of values to throw into the drop down list.

Esteban has it that you are probably not checking for post-back. The other possibility is that you are manipulating the DDownList with another class in which case you will have to track what was the selected Item.
esteban_felipeConnect With a Mentor Commented:
Hi tricks801,

1.- EnableViewState should be set to true (At page level, or control level)
2.- Bind your data only on first request

Esteban Felipe
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.