c# - MaskedEditValidator DisplayMoney doesn't show up in Composite Control -


I am creating a simple composite control that is ajax functionality when trying to apply a masked additive DisplayMoney property does not work. Mascaid Admit, Signature of the Dollars has been attached. any idea? Here is my code:

  Secure Override Zero OnInit (EventArgs e) {base.OnInit (e); PriceTextbox.id = this.ID + "_price"; QuantityTextbox.id = this.ID + "_quantity"; TimeTextbox.ID = this.ID + "_time"; SubmitButton.ID = this.ID + "_submit"; SubmitButton.Text = "submit"; PriceMask.TargetControlID = priceTextbox.ClientID.ToString (); PriceMask.ID = ValueMask TargetControlID.ToString () + "_extender"; PriceMask.BehaviorID = "priceMaskExtender"; PriceMask.Mask = "99.99"; PriceMask.DisplayMoney = Masked EditShowSymbol.Left; }  

Try adding the following line:

 < Code> PriceMask.MaskType = masked EditType.Number;  

Alternatively, set ClearMaskOnLostFocus to false if such behavior is what you want (it keeps a dollar sign even when it is not focused).

The DisplayMoney property seter only sets the property if the mask type maskedEdit.Tap is equal to the number.

 set  {if (type mask type == masket.it number) {SetPropertyValue ("DisplayMoney", value); }}  

Comments