Skip to content Skip to sidebar Skip to footer

Html5 Dropdownlist Using Findbyvalue

my dropdownlist HTML5 On my page load I am binding my dropdownlist to a list collection

Solution 1:

It sounds like the value that is returned from the reader does not match exactly or it is missing from the list items.

I would put a break point at the point & check that these values match:

Try this but replace 0 with the value of the item.

 ddlStateLegalRes.Items[0] == sdr["STATEOFLEGALRESIDENCE"].ToString());

It sounds like a case or white space triong issue.

Post a Comment for "Html5 Dropdownlist Using Findbyvalue"