How to add a default “Select” option to this ASP.NET DropDownList control?

后端 未结 7 2123
别那么骄傲
别那么骄傲 2021-01-02 05:06

I am a new ASP.NET developer and I am trying to learn Linq-To-Entities. I am trying to bind a DropDownList with the Linq statement for retrieving the list of status in the S

7条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-02 05:20

    Although it is quite an old question, another approach is to change AppendDataBoundItems property. So the code will be:

    
         
    
    

提交回复
热议问题