473,396 Members | 1,871 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.

TextBox validating currency

Hi

I have a textbox and when the user enters say, £25.00 they want some client
side script to automatically check the field and update it to a particular
format, so £25.00 would become £0,000,025.00.

Is this a trivial task or is it a nightmare? Any direction?

Thanks
Kev
Nov 19 '05 #1
1 1316
There's no built-in mechanism, but you can certain achieve something pretty
slick with a custom server control.
Take a look at the following link, I think you'll find it's exactly what you
want:
http://www.codeproject.com/aspnet/CurrencyBox.asp

Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/

"Mantorok" <no**@tiscali.co.uk> wrote in message
news:dh**********@newsfeed.th.ifl.net...
Hi

I have a textbox and when the user enters say, £25.00 they want some
client side script to automatically check the field and update it to a
particular format, so £25.00 would become £0,000,025.00.

Is this a trivial task or is it a nightmare? Any direction?

Thanks
Kev

Nov 19 '05 #2

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

Similar topics

5
by: Dmitry Karneyev | last post by:
How to make TextBox control that allows to input only numerics, currency etc ? Or can I download such stuff ?
11
by: Keith | last post by:
I apologize for those of you who think I'm posting on the same topic. It is not that I don't appreciate all of your comments - and I'm definitely reading them all - but I think I have a differing...
7
by: Greg Burns | last post by:
I have a textbox that I only want to allow "numbers". 1,000 1000 1000.0512 I don't want to prevent them from typing anything else, because I want to check their input in the Validating event...
10
by: Dennis | last post by:
I have a simple form with one button and one text box. In the Form, I create an array list to track the events by adding a descriptive string item to the arraylist in each event. I first Click on...
9
by: chuck | last post by:
I need some help with validating user input. I am writing a C computer program for an intro to C course. Here is the situation. I am creating an application that will do currency conversions. ...
14
by: teddysnips | last post by:
WINDOWS FORMS I've a form that has a textbox that allows the user to enter a string. On the LostFocus event, the textbox formats the string into a preferred format. However, if the user...
5
by: ameen.abdullah | last post by:
Hi Guys, I have a textbox in windows form that should only accept alphabets, numbers, spaces and underscore. If the textbox contains anyother character it should display a msg at the time of...
0
by: Anonieko | last post by:
Are there any javascript codes there? Answer: Yes On the PageLoad event call InitialClientControsl as follows /// <summary> /// This will add client-side event handlers for most of the...
0
by: =?Utf-8?B?UGFvbG8=?= | last post by:
I have a masked textbox with following mask: #####.## with a Validating Type of decimal. (It's a currency input field) I would like the cursor to position itself in the first spot to the left of...
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: 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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.