c# - Developing a custom-validation in asp.net for specific control and criteria -


Another relevant question is asked

In the same scenario we need a custom verifier control Alert for any incorrect entry, the user will act like this:

  1. The developer will pass the control-name, input-value, and format-required
  2. for example the text box It may be for: txtName, txtName
  3. Accordingly, if the user input Ama Somewhere it will then prompt him.

Please suggest correctly in advance thanks in advance.

You have described the default behavior of all ASP.N.I. Vedicities (control to validate etc.)

What you want to achieve (for example, Alpha Charter only, or only alphanumeric, etc.) can be obtained regularly with Expression Validated.


Comments