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