How to add a RequiredFieldValidator to DropDownList control?

前端 未结 4 823
青春惊慌失措
青春惊慌失措 2020-11-29 01:51

I have a DropDownList binded with aSqlDataSource to display the values from the database.

I am unable to validate using a RequiredFie

4条回答
  •  情深已故
    2020-11-29 02:28

    InitialValue="0" : initial validation will fire when 0th index item is selected in ddl.

    
    

提交回复
热议问题