I'm trying to add an extra layer of error checking on a Drop Down List. The
list is populated from one table, and then I select the selectedValue from
another DB.
While it SHOULDN'T ever happen, just incase, I want to check that the
selected value actually exists as a value in the dropDownList before I
actually try to select it.
I've tried this:
if
(DropDownList_category1.Items.FindByValue(ds.Table s(0).Rows(0)("listingCategory1")).Value.ToString
= "") then...
But that just gives me a " Object reference not set to an instance of an
object. " error.
-Darrel