Hi
I have implemented a country list using an sql datasource of countries for text and abbreviations
for values, but I would like to have a default initial item "-- select country -- " which creates a
validation failure using standard 'required field validator' for example.
This seems to be a common requirement but I did not find a simple solution in the docs.
I mus be missing something. What is the best way to do this?
I tried adding an item in the database table with an empty string for the abbreviation but this
did not seem to cause validation to fail if no selection was made.
Thanks as ever for you help
Clive
I have implemented a country list using an sql datasource of countries for text and abbreviations
for values, but I would like to have a default initial item "-- select country -- " which creates a
validation failure using standard 'required field validator' for example.
This seems to be a common requirement but I did not find a simple solution in the docs.
I mus be missing something. What is the best way to do this?
I tried adding an item in the database table with an empty string for the abbreviation but this
did not seem to cause validation to fail if no selection was made.
Thanks as ever for you help
Clive