This is my first post in my new blog. As I write this I have nestled down for an all night work session with a HUGE cafeteria of REALLY REALLY strong coffee lol. I would like to say that I am very please Joe Stagner has invited people into these asp.net blogs.
I want to make this first one a really quick handy tip and it is to do with the DropDownList control. I see so many questions and get asked so many times about this. When you have a databound DropDownList you will probably require an option which asks for the users selection i.e. a static option like -Please Select- .
A lot of the time people will put into a conditonal block where not postback to create a static item. What you can do is insert an item to your drop down list declaratively and add the attribute AppendDataBoundItems="True" to your drop down list.
What happens now is simply that instead of replacing any core items that were hardcoded, it does as the paramater suggests and appends additional data bound items onto the drop down list.