Validating date with rangevalidator control in

This range can be numbers, alphabetic characters and dates.

It should in fact allow, because its not necessary that users will enter value in a single format. Because when I enter "31/Mar/2009", it assumes Month as "Nan" (null), and in that case, it always gets invalidated.The Range Validator does exactly what the name implies; it makes sure that the user input is within a specified range.You can use it to validate both numbers, strings and dates, which can make it useful in a bunch of cases.The Minimum Value and Maximum Value properties are used to set minimum and maximum boundaries for the control. Before accepting data from over the network you need to ensure all of the required fields have been filled out and conform to your formats and business rules. NET provides a number of validation controls to ease the burden of performing validation on both sides of the network. To walk along with the example, create a new web application in Visual Studio . Once the application is setup, right click on the empty web form, select Properties from the context menu, and change the Page Layout property to Flow Layout. Notice we need to check the Is Valid property of the base class before performing any critical action in the submit event.

Search for validating date with rangevalidator control in:

validating date with rangevalidator control in-25

Leave a Reply

Your email address will not be published. Required fields are marked *

One thought on “validating date with rangevalidator control in”