P
Pat
When selecting a DropDownlList to display some Data based on the
ddl.SelectedItem.Value
since a dropdownlist index starts from 0..
After selecting for example value1 and 2 which its ok but when you get back
to select 0
it gives an error "Object reference not set to an instance of an object."
So after selecting this
ddl.Items.Insert(0, "-- Select Company --")
i get the error
Any workarounds
ddl.SelectedItem.Value
since a dropdownlist index starts from 0..
After selecting for example value1 and 2 which its ok but when you get back
to select 0
it gives an error "Object reference not set to an instance of an object."
So after selecting this
ddl.Items.Insert(0, "-- Select Company --")
i get the error
Any workarounds