Databound drop down list - initial value

后端 未结 8 1904
小蘑菇
小蘑菇 2020-12-24 03:21

How do I set the initial value of a databound drop down list in ASP.NET?

For instance, I want the values, but the first value to display should be -- Select One ---

8条回答
  •  清歌不尽
    2020-12-24 03:56

    hi friend in this case you can use the

    AppendDataBound="true"
    

    and after this use the list item. for e.g.:

    
           
    
    

    but the problem in this is after second time select data are append with old data.

提交回复
热议问题