I want to use a Currency control in Ajax that accepts any number of inputs

Posted by Viswa on Stack Overflow See other posts from Stack Overflow or by Viswa
Published on 2010-03-28T04:51:58Z Indexed on 2010/03/28 4:53 UTC
Read the original article Hit count: 374

Filed under:
|
|

I want to use a Currency Control in Ajax that accepts any number of input digits( with decimal maximum up to two digits only)

For example If i am having a code like this:

TextBox txt = new TextBox();
txt.Text ="99.99";
txt.Id = "TextBox1";

MaskedEditExtender mskEdit = new MaskEditExtender();
mskEdit.Id="CurrencyController";
mskEdit.Mask = "9,999,999.99";
mskEdit.TargetControlId = txt.Id;
mskEdit.DisplayMoney = MaskedEditShowSymbol.Left;
mskEdit.InputDirection = MaskedEditInputDirection.RightToLeft;
mskEdit.MaskType = "None";

The issue is tha, when i run the above code the TextBox(textbox input text given is 99.99 but it is showing as $,,_.99. Please help me on this issue.

© Stack Overflow or respective owner

Related posts about AJAX

Related posts about currency