<script runat="server">
protected void Button1_Click(object sender, EventArgs e)
{
if (PeterBlum.DES.Globals.WebFormDirector.IsValid)
{
}
}
</script>
To show an error, click the button for the <span class="PropertyName">ShowAlertOnSubmit</span> alert.
The type 'abc' into the textbox and tab off for the <span class="PropertyName">ShowAlertOnChange</span> alert.<br/>
<br/>
<des:PageManager ID="PageManager1" runat="server" ShowAlertOnChange="True" ShowAlertOnSubmit="True" />
<asp:TextBox ID="TextBox1" runat="server" />
<des:RequiredTextValidator ID="RequiredTextValidator1" runat="server"
ControlIDToEvaluate="TextBox1" ErrorMessage="Required" >
<ErrorFormatterContainer>
<des:TextErrorFormatter Display="Dynamic" />
</ErrorFormatterContainer>
</des:RequiredTextValidator>
<des:DataTypeCheckValidator ID="DTC1" runat="server" ControlIDToEvaluate="TextBox1"
DataType="Integer" ErrorMessage="Illegal format. Only digits are allowed." />
<br/>
<des:Button ID="Button1" runat="server" Text="Submit" />