validation class like css class
In web forms we need to use validation controls at many stages, and in a complete website we have many pages which need validations.
But at every page we have to use those validation controls with full definition. So isn't there a way to use validation controls as we do with css classes, just define once and use anywhere.
for ex, for textbox and ragular expression I want to write code like this
<asp:TextBox ID="TextBox1" runat="server" ValidationClass="Regular(Email)"></asp:TextBox>
<asp:TextBox ID="TextBox2" runat="server" ValidationClass="Regular(ContactNo)"></asp:TextBox>
if it is possible anyhow.
Please tell me if this/or similar method is possible.