473,396 Members | 2,109 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,396 software developers and data experts.

Int64 outside range of the Integer setting on Compare Validator

Hi there,

How can I validate large numbers that are too big for int32 which
Comparevalidator uses. Int64 can handle the value 9999999999999999999 (18
nines).

Help!

Many thanks,

Jono
May 10 '06 #1
3 2893
Hi Jono,

Is it possible for you to convert it to string and then make the
validation?

May 10 '06 #2
I could try...you mean convert to string, then test for string only
containing numbers?

"yo********@gmail.com" wrote:
Hi Jono,

Is it possible for you to convert it to string and then make the
validation?

May 10 '06 #3
It already is a string. The CompareValidator converts the string to a
number when it does the verification.

You can use a RegularExpressionValidator with the pattern "\d+" to
verify that the field only contains digits.

Jono Jones wrote:
I could try...you mean convert to string, then test for string only
containing numbers?

"yo********@gmail.com" wrote:
Hi Jono,

Is it possible for you to convert it to string and then make the
validation?

May 10 '06 #4

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

Similar topics

5
by: Doug Laidlaw | last post by:
HTML validators say that "background" is not a valid attribute for a <td> tag I want to set an image as the background for one cell only, and to have the cell content on top of it. If I can't...
4
by: Simon Devlin | last post by:
Hi folks, I've been bashing my head against this all afternoon and am now totally baffled. Given this (a simple routine to turn a ip address string into an decimal) <snip> Dim Parts(3) as...
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...
3
by: Sandy | last post by:
Hi All! I have a password textbox and a verify password textbox. I threw in the compare validator to make sure both values agree. I noticed, however, that immediately the compare validator...
3
by: Joey | last post by:
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...
2
by: Tarun Mistry | last post by:
Hi everyone, i have a range validator set to date mode. However, I want the max date to be whatever it is right now, is there a way of setting this within the properties of the range validator? ...
3
by: thomson | last post by:
Hi, I have 5 aspx pages, In one page i have a Compare Validator Control, The four aspx pages are loading fast with similar controls, no code behind, But the page having Compare Validator Control...
14
by: cj | last post by:
VB2003. I need a large positive integer. Which is larger int64 or double? I see int64 also apparently is known as long and will hold -9,223,372,036,854,775,808 through...
0
by: beasers | last post by:
Hi I can't find any other examples of this, but I have a simple text box with an accompanying range validator set to Min 0 and Max 99999. The validation works if I enter an illegal character...
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: 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...
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.