There is dropdown on webpage and I m filling it dynamically at run time. I want to set an item as selecteditem. that item will be decided on the page load based upon value I got from databse.
I set DataTextField,D ataValueField properties of dropdown.
Initially I got data printed on label and set dropdown.select edvalue=label1. text
it was working fine before setting DataValueField.
after setting DataValueField, it is throwing error "item you are trying to set as selecteditem is not in the list."
Please tell me some solution.
I set DataTextField,D ataValueField properties of dropdown.
Initially I got data printed on label and set dropdown.select edvalue=label1. text
it was working fine before setting DataValueField.
after setting DataValueField, it is throwing error "item you are trying to set as selecteditem is not in the list."
Please tell me some solution.
Comment