Page 128 - Programming VB.NET
P. 128

122                                 Chapter 11: Web Page



               Table 11.5 RangeValidator Properties

               Property            Set


               ErrorMessage        Please insert number 1 – 1000 only


               ControlToValidate  Choose txtmeter

               MaximumValue        1000


               MinimumValue        1




               Run the page and insert 0 or 1001 in txtmeter. The error
               message will appear as shown in Figure 11.8 and

               Figure 11.9. It is because we have set the maximum
               and minimum value.














                             Figure 11.8 Minimum value
   123   124   125   126   127   128   129   130