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? 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?
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
Thanks, guys. I had no idea that was there! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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:...
|
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...
|
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...
|
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...
|
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...
|
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"...
|
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...
|
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...
|
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...
|
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...
|
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,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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$) {
}
...
|
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...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
| |