473,383 Members | 1,919 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,383 software developers and data experts.

RangeValidator alwayr returns false

i wanna use RangeValidator but it always returns false,even i give the right numbers

<asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="TextBox1"
ErrorMessage="Tc kimlik no 11 rakamlı olmalı" ForeColor="White" MaximumValue="11"
MinimumValue="11" Type="Double">*</asp:RangeValidator>

someone to help me on this matter?
Aug 7 '07 #1
4 1490
kenobewan
4,871 Expert 4TB
Welcome to TSDN. Not sure why you are using rv to check one number?
Aug 7 '07 #2
Welcome to TSDN. Not sure why you are using rv to check one number?
I have web form, on which i should do some controls like; checking if given string only contains numbers and the string length should be 11. Also i should check if given string only has letters in it. I'm writing in C# .net and tried to do the controls with RangeValidator but it doesnt work. Searched little on google and found out that validation controls can be also done with javascipt, but dont know anything about javascript. Can u help me on this matter?
Aug 8 '07 #3
kenobewan
4,871 Expert 4TB
I suggest you use JS, probably with regular expressions:
Regular Expressions in JavaScript
Aug 8 '07 #4
at the design time only u put the max length and minimum lengh property of ranfg validator
Aug 9 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: charliewest | last post by:
I've configured a RangeValidator control on a WebForm, using ASP.NET, and have set the type to string, the max value to 100, and min value to 1, however, the control to validate always throws an...
2
by: Johannes Hammersen | last post by:
Hi, when I try to set the Minimum Date on a RangeValidator to 01.01.0001 I get an error, that 01.01.0001 can not be converted to a date. But the DateType can be 01.01.0001....
2
by: Lucas Tam | last post by:
Hi all, I have a RangeValidator that is not working correctly - it is always returning a isValid = False. The Javascript is returning this as well as on the server side. My RangeValidator...
3
by: hooterbite | last post by:
The range validator works, the compare validator doesn't. Dim txbNew As New TextBox txbNew.ID = "txb" & arStyles(i) Dim rvNew As New RangeValidator rvNew.Text = "Must be a number greater then...
1
by: COHENMARVIN | last post by:
I'm trying to get a rangevalidator to work. Normally this is easy, but here I'm trying to make the rangevalidator check a range that is from variables. Here is the code. Its simple, but it...
11
by: Axel Dahmen | last post by:
Hi, I'm working in a team developing an international website. When I set the page's CultureInfo to Hungarian (hu-HU) then the RangeValidator doesn't seem to be able to parse a TextBox's date...
4
by: jpabich | last post by:
I have a range validator on my field to make sure it is a double. No matter what I put in the field, it always comes back false. Why? <asp:rangevalidator id="valgMessageMin" runat="server"...
1
by: Cirene | last post by:
Here's my RangeValidator <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="txtSVDV" ErrorMessage="RangeValidator" MaximumValue="0" MinimumValue="-100" Type="Double">Make...
0
by: Andrew Han | last post by:
I have a simple textbox where a user can enter a numeric value. The RangeValidator works perfectly well to determine if the value is a number of whatever type I specify AND to determine if the...
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
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.