T
tshad
I have a dropdown that gives me an error when I do a FindByText, such as:
Dim temp as ListItem = JobTitles.Items.FindByText("BarTender")
temp.Selected = True
or
JobTitles.Items.FindByValue("BarTender").Selected = True
I get the error:
Object reference not set to an instance of an object.
I know the value is there.
Why doesn't this work?
Thanks,
Tom
Dim temp as ListItem = JobTitles.Items.FindByText("BarTender")
temp.Selected = True
or
JobTitles.Items.FindByValue("BarTender").Selected = True
I get the error:
Object reference not set to an instance of an object.
I know the value is there.
Why doesn't this work?
Thanks,
Tom