Calendar Custom Validator

前端 未结 2 1066
温柔的废话
温柔的废话 2020-12-20 08:11

Can someone suggest how to implement a custom validator for a Web Forms Calendar control? Apparently, neither RequiredValidator nor CustomValidator work out of the box with

2条回答
  •  悲&欢浪女
    2020-12-20 08:33

    I think you should use Ajax Control Toolkit (downloadale from: http://www.asp.net/ajaxlibrary/AjaxControlToolkitSampleSite/) Then you can format your calendar as you want. An example is like this:

    
    

    If you need to make sure that a date has been chosen, then you can do the following:

    
    

提交回复
热议问题