Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: RangeValidator control not stopping page submission...


Message #1 by "Oliver, Wells" <WOliver@l...> on Mon, 14 Oct 2002 14:32:30 -0700
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


  Return to Index