Questions tagged [rangevalidator]
63 questions
10
votes
4 answers
ASP.NET RangeValidator weirdness with MaximumValue
I have a pretty simple ASP.NET page with some input fields and validators. One field accepting a double looks like this:

Julian
- 20,008
- 17
- 77
- 108
7
votes
1 answer
ASP.NET MVC - Default Range validation error message not being overridden
Say I have a model property like this:
[Range(1, 31, ErrorMessage = "O dia de fechamento deve possuir valores entre 1 e 31")]
public int DataInicial { get; set; }
Even with a custom error message set on the annotation, I'm still getting the default…

cezarlamann
- 1,465
- 2
- 28
- 43
6
votes
1 answer
ASP.NET RangeValidator can't do even the most basic math?
I'm having an issue with my ASP.NET RangeValidator controls.
I want to allow users to enter a discount amount, and this amount must be negative (< $0.00). I want to verify that the amount entered in a textbox is a negative value, so I have this in…

marc_s
- 732,580
- 175
- 1,330
- 1,459
4
votes
4 answers
RangeValidator Can't Count?
I am trying to validate length of a string in a TextBox. Controls on page defined as follows:

Pankaj Agarwal
- 11,191
- 12
- 43
- 59
2
votes
0 answers
To access the range for a column from json file as Pandas schema in python
The csv file(valid_file.csv) is as follows
id tech_manager vessel_name vessel_code
1 789 900 1
2 748 73 9
3 564 91.23 15
4 332 52.12 …

arpita
- 51
- 5
2
votes
2 answers
Set the Culture for an asp.net RangeValidator
An asp:RangeValidator takes it's culture info from the page/ thread and all advice online around getting the right culture seems to be to set the CultureInfo on the thread.
Rick Strahl's west wind blog is typical advice
However, due to problems…

DannykPowell
- 1,227
- 5
- 18
- 30
2
votes
1 answer
Range validation in Wicket when using TextField
I have TextField and i want to validate that the input contain exactly 8 digit. if it was TextField i would simply add a PatternValidator("(\\d){8}") to it but PatterValidator extends IValidator and I cant add it to…

Hossein Nasr
- 1,436
- 2
- 20
- 40
2
votes
1 answer
how to work range validators for strings?
however my question is simple but I don't know it's answer. I use range validators in my project. I know how they work for integer or float or dates but I don't know how they works for strings. for example if the min value is "xx" and the max value…

Angel
- 733
- 1
- 7
- 12
2
votes
2 answers
ASP.Net, VB: Clearing fields on the webpage
I am developing a website using ASP.Net and VB.
On one of the pages, there are certain fields (TextBoxes and a DropDownList).
User is supposed to fill out those fields and click 'Submit' button. Also, there is a button 'Clear Values', which if…

Vikram
- 3,996
- 8
- 37
- 58
1
vote
0 answers
Range Validator showing error message but not preventing submit button click
This is my html code. I wonder why this range validator is not preventing the submit button click. any help will really be appreciated.

Hashim Khan
- 11
- 1
1
vote
1 answer
asp:RangeValidator MinimumValue > 0
I am back at last and actually have a perm job thanks to all the help you guys gave me a while back !! :) Thanks.
Ok, so now I have a simple task, to add some ranges to an existing ASP.Net page.
I am using asp:RangeValidator and have a type=double…

George
- 347
- 2
- 9
- 21
1
vote
1 answer
Custom Validation in Angular is not working on KeyPress Event
I have 2 fields in a Form.

55SK55
- 621
- 2
- 8
- 23
1
vote
1 answer
Validation control doesn't prevent PostBack request to server
I have big web page, among other there is TextBox and RequiredRangeValidator.

Budda
- 18,015
- 33
- 124
- 206
1
vote
2 answers
ASP.NET RangeValidator Behaving Strangely
It's type attribute is set to string and it's min value = 0 and the max value = 100.
I want to insure that the data entered won't exceed the column length defined in the database.
Now when I test it, it always display the error message even if I…

Mazen Elkashef
- 3,430
- 6
- 44
- 72
1
vote
1 answer
using Asp.Net RangeValidator for Int64
Is there a way to use RangeValidator for large numbers (Int64 range)?

nima
- 6,566
- 4
- 45
- 57