Duration: 17 minutes
Summary: In this video, we will talk about using the InitialValue property in the validation control. We will also discuss, the CompareValidator and the RangeValidator. With the RequiredFieldValidator, we can set the InitialValue property to give is (as the name implies) an initial value. Which means that when the user keeps this initial value, it is as if the user did not enter a value. This initial value comes handy when using dropdown boxes.The RangeValidator checks the input to make sure it falls within a specific range (for example age and grade). We use the MinimumValue and MaximumValue properties to specify the lower range and upper range. The Type property specifies the type of the value for comparison (for example Integer). With this validator, we can check to make sure the user is entering the correct type by adding the Operator property (in addition to the Type).
Methodology of the development of example: Good coding standard and simplified design to illustrate the key points.Technology Used: ASP.NET and Visual Studio 2010