range validator not working correctly

P

Paul

I have a range validator that only allows a value up to 100 but I have
specified 1000.
Here is the html code from the validator(created by .NET) I previously had
a validator set to 100 but deleted it. Thanks.

<asp:RangeValidator id="RangeValidator1" style="Z-INDEX: 136; LEFT: 552px;
POSITION: absolute; TOP: 280px"
runat="server" Font-Size="Smaller" Font-Names="Arial Narrow"
MinimumValue="0" MaximumValue="1000"
ControlToValidate="txt_bx_limit" ErrorMessage="1000 max"></asp:RangeValidator>
 
P

Paul

Not sure what was causing the problem but built a validator(server side)
without using the validator controls. Since I had to post back to the server
anyhow with the button I wanted to check the range it was simply a matter of
adding a few lines of code,
if control.text > 1000
else
end if
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top