In asp.net project,
I want to group digits while typing in a textbox.
Example:
123456123456
123.456.123.456
My aim is not grouping ip adress. I want it to read numbers easily. eg : 12.000.152.156.123.156
How can i do this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Edit: If you instead want to do that on serverside(don’t tag javascript, people have spent a lot of time to provide you a clientside solution):
http://msdn.microsoft.com/en-us/library/dwhawy9k.aspx
added by balexandre
and you can always add some simple validation
If you want to add a thousand separator to a numeric string value you can use this function:
test: