How to add an initial “select” value to a DropDownList

前端 未结 3 701
鱼传尺愫
鱼传尺愫 2021-01-05 02:57

If I use a DropDownList:

 

        
3条回答
  •  青春惊慌失措
    2021-01-05 03:32

    You can use

    
           
    
    

    Or you can add this dynamically at code behind like this

    DropDownListSubContractors.Items.Add(new ListItem("---Select---", "0"));
    

提交回复
热议问题