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>
<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>
相關(guān)文章
- ASP.NET Web Pages 教程
- ASP.NET Web Pages WebMail 參考手冊
- ASP.NET WebPages 幫助器參考手冊
- ASP.NET Razor 語法
- ASP.NET Razor VB 變量
- ASP.NET Razor VB 循環(huán)和數(shù)組
- ASP.NET MVC Web 應(yīng)用程序
- ASP.NET MVC 數(shù)據(jù)庫
- ASP.NET MVC 模型
- ASP.NET MVC 參考手冊
- ASP.NET 母版頁
- ASP.NET RegularExpressionValidator 控件
- ASP.NET ImageButton 控件
- WebSecurity CurrentUserId 屬性
- WebSecurity ChangePassword 方法
- WebSecurity ConfirmAccount 方法
- HTML InputImage
- Button
- ASP.NET HTML 控件 DataList
- ASP.NET HTML 控件 Table