Posted on: 11/11/2014 10:38:06 PM | Views : 388

Hello everyone, I am trying to use this on page load event.
If (Not (Dropdownlist1.Items.FindByValue(rdr("customer_id"))) Is Nothing) Then Dropdownlist1.SelectedValue = rdr("customer_id") End If This is not working cause the findbyvalue could not find the value. However if do this without checking the condition like this, it works:
Dropdownlist1.SelectedValue = rdr("customer_id") Any idea why this happens? I think it is because of the sequence of the binding of the dropdownlist. But why the one without condition is working if the sequence is an issue?
What's the best way to solve this? 
Thanks. 


Go to the complete details ...