CustomValidator control in asp.net Part 48



CustomValidator control in asp.net Part 48

CustomValidator control in asp.net   Part 48

Text version of the video
http://csharp-video-tutorials.blogspot.com/2012/11/customvalidator-control-in-aspnet-part.html

Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our YouTube channel. Hope you can help.
https://www.youtube.com/channel/UC7sEwIXM_YfAMyonQCrGfWA/?sub_confirmation=1

Slides
http://csharp-video-tutorials.blogspot.com/2013/08/part-48-customvalidator.html

All ASP .NET Text Articles
http://csharp-video-tutorials.blogspot.com/p/free-aspnet-video-tutorial.html

All ASP .NET Slides
http://csharp-video-tutorials.blogspot.com/p/aspnet-slides.html

All Dot Net and SQL Server Tutorials in English
https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd

All Dot Net and SQL Server Tutorials in Arabic
https://www.youtube.com/c/KudvenkatArabic/playlists

CustomValidator control allows us to write a method with a custom logic to handle the validation of the value entered. If none of the other

validation controls, serve our purpose, then the CustomValidator can be used.

Just like any other validation control, CustomValidator can be used for both client and server side validation. Client side and server side

validation functions, needs to be written by the developer, and associate them to the custom validator control.

The following are the properties that are specific to the CustomValidator control
ClientValidationFunction – Specifies the name of the client side validation method.
ValidateEmptyText – Specifies whether the validator validates the control, when the text of the control is empty. By default this property is false,

and both the client side and server side validation functions will not be invoked, if the associated input control is empty.

Events specific to the CustomValidator control
OnServerValidate – Specifies the name of the server side validation method.

Comments are closed.