<script runat="server">
protected void Button1_Click(object sender, EventArgs e)
{
if (PeterBlum.DES.Globals.WebFormDirector.IsValid)
{
}
}
</script>
<h2>Maximum</h2>
Maximum=10<br/><br/>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<des:TextLengthValidator ID="TextLengthValidator1" runat="server" ControlIDToEvaluate="TextBox1"
ErrorMessage="You have exceeded the limit of {MAXIMUM} characters" Maximum="10">
</des:TextLengthValidator>
<br/>
<br/>
<h2>Minimum using various tokens</h2>
Minimum=5<br/><br/>
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
<des:TextLengthValidator ID="TextLengthValidator2" runat="server" ControlIDToEvaluate="TextBox2"
ErrorMessage="You have entered {COUNT} which is {EXCEEDS} {EXCEEDS:character:characters} less than {MINIMUM}."
Minimum="5">
</des:TextLengthValidator>
<br/>
<br/>
<des:Button ID="Button1" runat="server" Text="Submit" OnClick="Button1_Click"></des:Button>