Hi,

As state several places, it is possible to set the CurrentCulture if
it is acceptable for all users to use a dot as separator.

Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
Thread.CurrentThread.CurrentUICulture =
CultureInfo.InvariantCulture;

But this is not allowing the user to use either a dot or a comma as a
decimal separator (while Decimal x = Decimal.parse("1,2") would give x
= 1.2)

--
Dom

On 17 Sep, 23:03, Dom <[EMAIL PROTECTED]> wrote:
> Hi,
> I am struggling with the input of decimal probably because of a
> localization problem.
> If tagging a property with ValidateDecimal, the user must use a dot as
> the decimal separator, the problem is that the server has a culture
> where the separator is a comma so I can't get the decimal values to
> the controller.
> Is it possible to configure the validation to use a special format?
>
> The application will be used in different locations and both dot and
> comma should be accepted as a separator, does it exist an easy way to
> do that? If not do you have any recommendations for making this work.
>
> Thanks for any help,
>
> Dom
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to