Hi
I have a DropDownList that gets its values from a DataSource-control. Nothing magic so far. What makes me scratch my head is that I need to set the default (selected) value in the drop down.
As the values come from a data source, I do not know the key/value/index of the default I. Is there a possibility to make the drop down "ask the data source" which key should be the default (that is, only if the drop down is populated the first time, of course)?
Background: I have an application where an administrator can set the "standard" month that the application should use. This value needs to be configurable by the admin. Now I could save the value to a database. And then? How to get it into my "Month"-drop down?
As I have *lots* of drop downs like this and as I tend to forget things I have to do over and over again, I would rather not use the drop downs "OnDataBound" or something similar to set the d ...
Go to the complete details ...