aspx thread: RangeValidator control not stopping page submission...
Consider:
<td width="450"class="projectData"><asp:DropDownList ID="DisplayProduct"
Runat="server" />
<asp:RangeValidator ID="productDisplayValidator" Display="Dynamic"
ControlToValidate="DisplayProduct" MinimumValue="1" MaximumValue="3"
ErrorMessage="No!!" Runat="server" />
<asp:Button Text="Save" ID="submitButton" CommandName="Update"
Runat="server" />
DisplayProduct is a range of 0-3. However, when I click on the button with
DisplayProduct set to 0, it displays the errror message but submits the page
anyway. Any tips?
Wells Oliver
Web Application Programmer
Leviton Voice & Data
xxx-xxx-xxxx
http://www.levitonvoicedata.com