控件定义
<ASP:RANGEVALIDATOR id="rvPrice" style="Z-INDEX: 100; LEFT: 212px; POSITION: absolute; TOP: 74px"
runat="server" Type="Double" MaximumValue="9999.99" MinimumValue="0" ControlToValidate="txtPrice"
ErrorMessage="Price is not a valid number.">*</ASP:RANGEVALIDATOR>
<ASP:RANGEVALIDATOR id="rvPrice" style="Z-INDEX: 100; LEFT: 212px; POSITION: absolute; TOP: 74px"
runat="server" Type="Double" MaximumValue="9999.99" MinimumValue="0" ControlToValidate="txtPrice"
ErrorMessage="Price is not a valid number.">*</ASP:RANGEVALIDATOR>
看看这个http://msdn.microsoft.com/library/chs/default.asp?url=/library/CHS/cpgenref/html/cpconrangevalidatorcontrol.asp