<script runat="server">
protected void Button1_Click(object sender, EventArgs e)
{
if (PeterBlum.DES.Globals.WebFormDirector.IsValid)
{
}
}
</script>
<h3>Mode=Always</h3>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<des:RequiredTextValidator ID="RequiredTextValidator1" runat="server" ControlIDToEvaluate="TextBox1"
ErrorMessage="Required"
NoErrorFormatter-Mode="Always"
NoErrorFormatter-ImageURL="{APPEARANCE}/Validation/validicon.GIF">
</des:RequiredTextValidator>
<br/>
<h3>Mode=Corrected</h3>
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
<des:RequiredTextValidator ID="RequiredTextValidator2" runat="server" ControlIDToEvaluate="TextBox2"
ErrorMessage="Required"
NoErrorFormatter-Mode="Corrected"
NoErrorFormatter-Text="Fixed. Thanks!">
</des:RequiredTextValidator>
<br/>
<h3>Mode=FirstTime</h3>
<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
<des:RequiredTextValidator ID="RequiredTextValidator3" runat="server" ControlIDToEvaluate="TextBox3"
ErrorMessage="Required"
NoErrorFormatter-Mode="FirstTime"
NoErrorFormatter-Text="Pending an entry"
NoErrorFormatter-CssClass="DESVALErrorText">
</des:RequiredTextValidator>
<br/>
<h3>Mode=Validated</h3>
<asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
<des:RequiredTextValidator ID="RequiredTextValidator4" runat="server" ControlIDToEvaluate="TextBox4"
ErrorMessage="Required"
NoErrorFormatter-Mode="Validated"
NoErrorFormatter-Text="Good data"
NoErrorFormatter-ImageURL="{APPEARANCE}/Validation/validicon.GIF" >
</des:RequiredTextValidator>
<br/>
<des:Button ID="Button1" runat="server" Text="Submit" OnClick="Button1_Click"></des:Button>