ASP.NET HTML 控件 RangeValidator

asp.net html 控件 rangevalidator

<!doctype html>
<html>
<body>

<form runat="server">
enter a date between 2005-01-01 and 2005-12-31:
<br>
<asp:textbox id="tbox1" runat="server" />
<br><br>
<asp:button text="submit" runat="server" />
<br><br>
<asp:rangevalidator
controltovalidate="tbox1"
minimumvalue="2005-01-01"
maximumvalue="2005-12-31"
type="date"
enableclientscript="false"
text="the date must be between 2005-01-01 and 2005-12-31!"
runat="server" />
</form>

</body>
</html>
相关文章