I have a details view and in the edit template I have a radio button list.
In view mode the field (Gender) is displaying a value from the database - Male.
When in edit mode, I have a radio button list whose datasource is a list which is derived from a table in the database. Male or Female.
However I get the error
Even though Male is an option as a radio button and is also the value stored in the field.
Any ideas
In view mode the field (Gender) is displaying a value from the database - Male.
When in edit mode, I have a radio button list whose datasource is a list which is derived from a table in the database. Male or Female.
However I get the error
Code:
'RadioButtonList1' has a SelectedValue which is invalid because it does not exist in the list of items.
Parameter name: value
Even though Male is an option as a radio button and is also the value stored in the field.
Any ideas