为什么说.net中的RangeValidator不能算作一个长尾关键词?
- 内容介绍
- 文章标签
- 相关推荐
本文共计116个文字,预计阅读时间需要1分钟。
我在TextBox中验证字符串的长度。页面上的控件定义如下:
asp
我试图验证TextBox中字符串的长度.页面上的控件定义如下:<asp:TextBox runat="server" ID="TB" /> <asp:RangeValidator runat="server" ID="RV" MinimumValue="3" MaximumValue="20" ControlToValidate="TB" Type="String" />
但是当页面运行时出现运行时错误
你提到Type不正确,它应该是Type =“Integer”而不是Type =“String”The MaximumValue 20 cannot be less
than the MinimumValue 3
本文共计116个文字,预计阅读时间需要1分钟。
我在TextBox中验证字符串的长度。页面上的控件定义如下:
asp
我试图验证TextBox中字符串的长度.页面上的控件定义如下:<asp:TextBox runat="server" ID="TB" /> <asp:RangeValidator runat="server" ID="RV" MinimumValue="3" MaximumValue="20" ControlToValidate="TB" Type="String" />
但是当页面运行时出现运行时错误
你提到Type不正确,它应该是Type =“Integer”而不是Type =“String”The MaximumValue 20 cannot be less
than the MinimumValue 3

