Hi,
I am working on windows applications.
var pinCodeObject=.....;//I got pincode object with my logic
I have one statedropdownlist
for the following code,
statedropdownlist.selectedvalue=pinCodeObject.Statecode;
In this case I am getting pinCodeObject.Statecode is some value(not null)
but after executing this line also statedropdownlist.selectedvalue is null
note:I bound statedropdownlist items in form load event with values which are pinCodeObject.Statecode and text is state names.
Please tel me how can i set selectedvalue dynamically in code
Loading
Jean PaulPosted Oct 19, 2011, 9:43 AM
Instead of using SelectedValue you can try with the SelectedIndex.
raja rameshPosted Oct 20, 2011, 2:42 AM