我试图验证TextBox中字符串的长度.页面上的控件定义如下: asp:TextBox runat="server" ID="TB" /asp:RangeValidator runat="server" ID="RV" MinimumValue="3" MaximumValue="20" ControlToValidate="TB" Type="String" / 但是当页
<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