CustomValidator Control

Sometimes none of the previously covered validation controls are sufficient to properly validate user input. For instance, none of the preceding examples would be up to the task of validating that a credit card number was valid, or better yet, checking to make sure that that account had sufficient funds for the pending transaction. For situations like these that require the use of special business rules to validate the user input, the CustomValidator control is the tool to use. Table 8.7 details the additional properties specific to the CustomValidator control.

Table 8.7. CustomValidator Class Additional Properties
Method Type Description
ClientValidationFunction String The client-side function to use for Uplevel browser ...

Get ASP.NET by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.