paakay
Programmer
- Aug 23, 2005
- 7
My form seems to be unstable. The reason is that even if I enter certain values that are within the value range the range validator seem to catch them.Below is my code
<tr>
<td style="height: 8px; width: 104px">
Rent(Monthly):</td>
<td style="height: 8px; width: 228px;">
<asp:TextBox ID="rentTextBox" runat="server" Width="100px" MaxLength="5">$</asp:TextBox>
<asp:RequiredFieldValidator ID="rentReqdFldValidator" runat="server"
ControlToValidate="rentTextBox" ErrorMessage="Enter monthly rent">*</asp:RequiredFieldValidator>
<cc1:ValidatorCalloutExtender ID="rentReqdFldValidator_ValidatorCalloutExtender"
runat="server" Enabled="True" TargetControlID="rentReqdFldValidator">
</cc1:ValidatorCalloutExtender>
<asp:RangeValidator ID="rentRangeValidator1" runat="server"
ControlToValidate="rentTextBox" ErrorMessage="Enter rent between $100 & $2500"
MaximumValue="$2500" MinimumValue="$100" Type="String">*</asp:RangeValidator>
</td>
</tr>
Any help will be much appreciated
<tr>
<td style="height: 8px; width: 104px">
Rent(Monthly):</td>
<td style="height: 8px; width: 228px;">
<asp:TextBox ID="rentTextBox" runat="server" Width="100px" MaxLength="5">$</asp:TextBox>
<asp:RequiredFieldValidator ID="rentReqdFldValidator" runat="server"
ControlToValidate="rentTextBox" ErrorMessage="Enter monthly rent">*</asp:RequiredFieldValidator>
<cc1:ValidatorCalloutExtender ID="rentReqdFldValidator_ValidatorCalloutExtender"
runat="server" Enabled="True" TargetControlID="rentReqdFldValidator">
</cc1:ValidatorCalloutExtender>
<asp:RangeValidator ID="rentRangeValidator1" runat="server"
ControlToValidate="rentTextBox" ErrorMessage="Enter rent between $100 & $2500"
MaximumValue="$2500" MinimumValue="$100" Type="String">*</asp:RangeValidator>
</td>
</tr>
Any help will be much appreciated