I want to use a Currency control in Ajax that accepts any number of inputs
- by Viswa
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.