Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
465
Phone number localization
posted

Hi does anybody know if the WebMaskEditor suppports localization in relation to phone numbers or if this is possible somehow?

What I want is if your culture is set to en-US that you get a mask like (___) ___-____, but if the culture is set to en-GB the mask is (____) _______ or whatever it is supposed to be. To me it seems as though there has to be a way to do this.

Thanks

Parents
No Data
Reply
  • 24497
    Verified Answer
    posted

    Hi,

    The Culture related options come from CultureInfo class of dot-net. There are no options for telephone format.

    The best I can suggest, is to process Page.OnLoad or similar event, get current (or expected) culture and adjust InputMask property accordingly.

Children