How to get selectedvalue from dropdownlist?

osl

Member
Joined
Jun 8, 2006
Messages
20
Programming Experience
5-10
Hi,
I populated data into the dropdownlist during pageload event and selected an item.Then at the when I click at Delete button, it didn't delete the selected item but instead it always delete the first record of the dataset.
When debug, I realized that the dropdownlist was populated again when I click the Delete button.No wonder it's always picking the 1st record.
But if I only populate it with a Load button instead of at PageLoad, it's ok.
I would prefer if it's populated during PageLoad.

Would appreciate if anyone there can help.
Thanks!
 
Can you post some code? Should be solvable if we can see whats happening.
 
Back
Top