thanks for your reply. I understand that I can solve it that way, but this
both would mean that "(Please select a value)" is at least a valid value for
the DropDownList. How would I get it work together with Field Validators (I
must admit that I am still new to ASP.NET and don't know much about working
with them)? What value should I define for the ListItem which states
"(Please select a value)"?
Who forces you to use validators? I am not so new to ASP.NET already, but I
never used them anyway.
I would recommend using text "(Please select a value)" only if a value must
be selected and there is no default one. If there is a default, you should
set it selected straight away. If the selection is optional, you should make
original text empty.
You can use an empty string as a value, or whatever else that will tell the
application that no selection has been made.
Eliyahu, mixing database design with application design, seems for me not to
be a good start. It is much easier to do so, but it would mean that values
which are only required to fix application issues are treated as valid
values in the database.
No, I did not mean the table in the database. I mean the DataTable in the
Dataset the list is bound to. Or any other dotnet datasource for this
matter. And as far as database design is concern you are 100% right.
When trying to do the same for Windows Forms applications I do have
ComboBoxes (which seems to me the pendant to DropDownLists) where as default
no item is selected. This is much easier for us to work with.
Welcome to the web design world!