How to format a number as phone number (e.g. (45)879-2658 ) using MS Ajax formatting.
In C#, i can format this number using {0:(###)###-####} .
But not sure how to achieve this format in MS Ajax for an integer.
How to format a number as phone number (e.g. (45)879-2658 ) using MS Ajax formatting.
In C#, i can format this number using {0:(###)###-####} .
But not sure how to achieve this format in MS Ajax for an integer.
Copyright © 2021 Jogjafile Inc.
I don't know C#, this is how you can do picture formatting in javascript:
To handle strings shorter than a picture, try this slightly more verbose code: