473,385 Members | 1,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Range Validator Does Not Work Properly

I have a page with a range validator on it. I have the following set...

ControlToValidate=txtSomeTextBox
MinimumValue=1
MaximumValue=2000

Now, when I run the form, the values 1,2,10 all pass the test while
3,4,5,6,7,8, and 9 fail. This is very strange behavior, and I have no
idea how to fix it? I have already tried replacing the range validator
with a new one, but that didn't work. Any ideas?

Nov 19 '05 #1
3 2820
Hi Joey

did you also set properties like Type=Integer ?
Regards
Jignesh Desai - MVP
Blogs @ http://dotnetjini.jigneshdesai.com/Blogs/default.aspx
..NET Training Programs : http://dotnetjini.jigneshdesai.com/Training.aspx
"Joey" <jo*********@topscene.com> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...
I have a page with a range validator on it. I have the following set...

ControlToValidate=txtSomeTextBox
MinimumValue=1
MaximumValue=2000

Now, when I run the form, the values 1,2,10 all pass the test while
3,4,5,6,7,8, and 9 fail. This is very strange behavior, and I have no
idea how to fix it? I have already tried replacing the range validator
with a new one, but that didn't work. Any ideas?

Nov 19 '05 #2
Joey wrote:
I have a page with a range validator on it. I have the following
set...

ControlToValidate=txtSomeTextBox
MinimumValue=1
MaximumValue=2000

Now, when I run the form, the values 1,2,10 all pass the test while
3,4,5,6,7,8, and 9 fail. This is very strange behavior, and I have no
idea how to fix it? I have already tried replacing the range validator
with a new one, but that didn't work. Any ideas?


Don't forget to set the "Type" property.
It should be set to Integer instead of String.

--
Riki
Nov 19 '05 #3
Thanks, guys. I had no idea that was there!

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Declan Naughton | last post by:
Hello, I'm a bit of a n00b with this CGI and web-server stuff.. But I decided to download and try to install the W3C validator (along with the error definitions).. I followed most of the...
7
by: Gapingwound | last post by:
I have one page that is not validating XHTML1 STRICT properly, but the validator at w3c is showing an error for something that is not in my page. Here's the error: 1. Line 72, column 160:...
0
by: Mike Moore | last post by:
We have a min and max qty fields, but we can't seem to get these to work properly. THe min qty is one of requied fields. A user can enter a min of 1 and max could be 0. We would like to...
2
by: Pham Nguyen | last post by:
Has anyone seen an example of a textbox server control that has built-in client-side validation? I'd like to build a server control that extends the System.Web.UI.WebControls.TextBox class to allow...
0
by: TN Bella | last post by:
Hi, I am trying to get my compare validator to fire properly...Since I have panels the validator wouldn't work properly, the app would fire right but would insert the data regardless and the...
8
by: pmud | last post by:
Hi, I am using a compare validator in asp.net application(c# code). This Custom validator is used for comparing a value enterd by the user against the primary key in the SQL database. IF the...
1
by: tshad | last post by:
I have been trying to set up a range validator and regular expression for my dates. I tried this: <asp:RangeValidator runat="server" ControlToValidate="AbsentFrom1" MinimumValue="12/31/1950"...
5
by: Pete Hearn | last post by:
Hi All Just got my first ASP.net form running - a proud moment! The form has about 20 fields, and a few need to have values supplied. No problem - shoved in a few RequiredFieldValidators and...
3
by: CK | last post by:
Hello All, I have a page with a text box. It has a required field validator, and a regualur expression validator tied to it. A valid email is required. When clientside is enabled it works...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.