- Online Barcode Generator
- How To
- Buy Now
Simple Information of CaptchaValidate Control
Generally speaking, the CaptchaValidate event of KT.UI for ASP.NET AJAX occurrs and starts berfore the control is validated. This event allows users to implement server-side code on PerCaptcha validation with advanced PerCaptcha component. Users are even able to cancel the default validation system of the captcha control and to specify and define your own logic for validating the PerCaptcha.
PerCaptchaValidate serve event owns the following properties and benefits when it is fired within ASP.NET application:
How to Set CaptchaValidate
Example ASPX and C# codes below is used to demonstrate PerCaptcha that is validated if the sum of the digits, displayed in the code, is entered in the input. In order to reach this goal, users need to set the property CancelDefaultValidation as true and the new validation logic is implemented in the CaptchaValidate event handler. And finally, IsValid is set according to the result of the validation.
Please refer following ASPX demo codes to set and display captcha on web page.
Sample C# codes are for setting CaptchaValidate based on above two properties within ASP.NET C# project.
If users input the wrong sum digits, the read error message will occur promptly. Displayed below is a sample screenshot for inputting wrong sum value.
Find Other Related Online Tutorials
This page mainly focuses on CaptchaValidate control and how to set its two relevant properties by using KT.UI for ASP.NET Captcha Controls within ASP.NET project, for further operations on captcha component, users can get more guides via following recommended tutorials.
ASP.NET AJAX UI Controls