Validating with a custom function for asp net server controls

In this article, we will explore how to create a custom validation control in ASP.NET and provide both Server and Client Side Validation for the same.This sample will demonstrate that the user should select at least one checkbox and one radiobutton before submitting the form to the server.For this purpose, we will first show how to create a custom validation control to perform server-side validation and then extend the control to support client-side validation too.isvalid It is a Boolean property of each client validator indicates the validator’s validity.4.

Page_Client Validate(validator Grp) Takes 1 parameter : Validation group name Return : bool value It is used to validate all validator of that given validation group and returns bool value.

Abstract: The Base Validator class defines the basic implementation needed for all Validation controls.

There are 6 Validation Controls included in the ASP. NET 3.5 framework, however with a few shortcomings.

The data type and comparison operation can be specified.

If the validated control is empty, no validation takes place.

Search for validating with a custom function for asp net server controls:

validating with a custom function for asp net server controls-72

Leave a Reply

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

One thought on “validating with a custom function for asp net server controls”