Re: allow all currency symbols
From: Peter Blum (PLBlum_at_Blum.info)
Date: 10/20/04
- Next message: Peter Blum: "Re: ValidationControls in a User Control"
- Previous message: Anurag K: "singleton classes in web application"
- In reply to: magister: "allow all currency symbols"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 20 Oct 2004 13:20:05 -0400
Hi, please see my response to the same question that you posted here on
www.asp.net forums:
http://www.asp.net/Forums/ShowPost.aspx?tabindex=1&PostID=724575
--- Peter Blum
www.PeterBlum.com
Email: PLBlum@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx
"magister" <yurps@yahoo.co.uk> wrote in message
news:984bebc3.0410200148.7957a46@posting.google.com...
> Hello,
>
> Is there a way I can validate the input on a textbox for currency
> including all currency symbols..
>
> At the moment I have it only for the current culture info, but most
> banks use several different currencies...
>
> Thanks for any clues....
>
> Here's what I have so far...
>
>
> try
> {
> Result = Double.Parse(args.Value, NumberStyles.Any);
> done = true;
> }
> catch
> {
> done = false;
> }
>
> if (done)
> {
> args.IsValid = true;
> }
> else
> {
> args.IsValid = false;
> }
- Next message: Peter Blum: "Re: ValidationControls in a User Control"
- Previous message: Anurag K: "singleton classes in web application"
- In reply to: magister: "allow all currency symbols"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|