Masked Formating
-
Hi, I have a textbox which get a number(Amount of money) from user. i want to show the enterd number like this : 0,000,000(1,123,145)(automatically add (,) after 3digits enterd) when i use masking it doesn't work the way i want it , can any one help me on this?
-
Hi, I have a textbox which get a number(Amount of money) from user. i want to show the enterd number like this : 0,000,000(1,123,145)(automatically add (,) after 3digits enterd) when i use masking it doesn't work the way i want it , can any one help me on this?
Winform or webform? In winform, you can use MaskedEdit standard control.. In web form, you have to find the custom control (e.g. http://www.codeproject.com/useritems/MaskingText_for_ASPNET.asp)
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) "Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
-
Winform or webform? In winform, you can use MaskedEdit standard control.. In web form, you have to find the custom control (e.g. http://www.codeproject.com/useritems/MaskingText_for_ASPNET.asp)
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) "Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
-
in winform I used defult masks but they didn't work porperly what I've tried to do is to automatically add a (,) after 3digits is enterd thanks
If your text is static, you can use
#,###,###(#,###,###)
in Standard masked edit. if you want to enter the text as much as you want then you should consider using thoundsand seperator function in keypress event of textbox..Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) "Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."