How do only start four digit and after decimal keep 3 digits into asp.net

Posted by Cpatil1000 under ASP.NET on 9/8/2013 | Points: 10 | Views : 1689 | Status : [Member] | Replies : 2
Hi,

Our client is required such type. I have taken one textbox and i have used MaskedEditExtender. But this ajax contro is
not accepteding backspace only allowed take cursor first into textbox on starting then allowed to type. but this is not.
If i press tab then it is going that textbox and my cursor is coming last point and I try to remove that string it not allowed
backspace..

e.g.
1000.001
0.001
0.034

Any other masks or formt, so i can use

thanks..




Responses

Posted by: Nismeh on: 9/9/2013 [Member] Starter | Points: 25

Up
0
Down
I have faced same kind of problems in MaskedEditExtender. But I suggest to use regularexpression for these kind of thing. Its much handy than all these.

IT KNOWLEDGE IS APPLIED KNOWLEDGE
So Just Do It

Cpatil1000, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Self-Innovator on: 9/10/2013 [Member] Bronze | Points: 25

Up
0
Down
Hi,
You can try this below link
http://www.dotnetfunda.com/codes/code2106-only-three-or-n-decimal-places-are-allowed.aspx


Join Hands Change lives
Thanks & Regards
Straight Edge Society

Cpatil1000, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response