close
<asp:comparevalidator runat="server"
errormessage="The date must be greater than today"
controltovalidate="txtDate1" type="date"
valuetocompare="<%# DateTime.Today.ToShortDateString() %>" />
Then in your Page_Load
method, call Page.DataBind()
.
Operator="GreaterThan"
http://stackoverflow.com/questions/2264215/using-the-comparevalidator-control-to-compare-user-input-date-with-todays-date
全站熱搜
留言列表