text in ddl before binding with dataset.

Rani

Well-known member
Joined
Nov 19, 2005
Messages
71
Programming Experience
Beginner
I have two ddl countries and states. I populate using the dataset and bind them to the ddl's.
what i want to do is before i bind i want to show in my ddl text like
"---Please select Country------" or "----Please select a state-----"
how would i get this done?
Thanks:confused:
 
Thanks for the info about webforms binding djjeavons! It was new to me that items could be added manually to databound web controls, but it works too of course. So you could also then add the description item for the control directly in Designer and set AppendDataBoundItems, but could also be a gotcha for postbacks this one.
 
Back
Top