Project Description

This project contains two parts:
  • ServerSideValidation: Easy implemented, flexible string validator for c# projects.
  • ValidationControl: Textbox controls which wrap ServerSideValidation implementation and support JQuery Validation.


String checker for server side validation.
Providing checkers:
  • Requirement
  • Min - max length
  • Equal to
  • Pattern

The built-in patterns:
  • Alphanumeric
  • Letter only
  • Digits only
  • Date
  • Phone
  • Email
  • URL
  • URL friendly
  • No HTML tag

Creating a new built-in pattern is supported by interface and abstract class.
Supports custom defined patterns.
Supports custom error messages.
Supports input key.
Supports multi language.


Custom textbox control library for validation.
Supports all the features that ServerSideValidation and Textbox have.
Supports a wrapper control which can merge and inject javascripts.

Requires JQuery and JQuery Validation for javascript validation.


For detailed usage try ValidationControl.FormTest project.

Aspx page:
<!-- For injecting javascripts should use JsRegisterer.
Otherwise Validation Controls validate inputs only at the server side-->
<vc:JsRegisterer ID="JsRegisterer1" runat="server">
            <td><vc:ValidationLetter ID="ValidationLetter1" Key="LetterField" Required="True" runat="server"/></td>
            <td><vc:ValidationDigit ID="ValidationDigit1" Key="DigitField" runat="server"/></td>
            <td><vc:ValidationAlphanumeric ID="ValidationAlphanumeric1" Key="AlphanumericField" runat="server"/></td>

Code behind validation:
foreach (Control control in JsRegisterer1.Controls.OfType<ValidationBase>())
    if (control != null)
        var field = control as ValidationBase;
        if (!field.ValidateField())
            //Do something with using field.Error and field.Key

Last edited May 10, 2013 at 10:27 AM by pilavust, version 4