Re: allow all currency symbols

From: Peter Blum (PLBlum_at_Blum.info)
Date: 10/20/04


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;
> }



Relevant Pages

  • Re: Non IE brower issue
    ... --- Peter Blum ... Creator of "Professional Validation And More" at ... > Opera on the PC and the Mac: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: "Combobox"-type control?
    ... --- Peter Blum ... Creator of "Professional Validation And More" at ... The standard DropDownList control only ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: ASPNet validation and Javascript
    ... --- Peter Blum ... Creator of "Professional Validation And More" at ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: questions regarding validator controls
    ... --- Peter Blum ... Creator of "Professional Validation And More" at ... > both have got input boxes with required validators, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: help with validating a textbox
    ... "Peter Blum" wrote: ... > Creator of "Professional Validation And More" at ... >> A-Z ... >> can someone direct me to a good reference article because i can't find ...
    (microsoft.public.dotnet.framework.aspnet)