<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DisableClientValidation.aspx.cs" Inherits="DisableClientValidation" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
<p>
Quantity:<br />
<asp:TextBox ID="txtQuantity" runat="server"></asp:TextBox>
   <asp:CompareValidator ID="compQuantity" runat="server" 
   ControlToValidate="txtQuantity" 
   Operator="DataTypeCheck"
   Type="Integer"
   EnableClientScript="false"
   Text="Enter a valid whole number" />   
</p>

<p>
<asp:Button ID="btnSubmit" Text="Click this to test validation" runat="server" OnClick="btnSubmit_Click" />
</p>
      
<br />
<asp:Label ID="labContent" runat="server" />      
    </form>
</body>
</html>
