locked
MaskedEditExtender

    Question

  • Code Snippet

    <asp:TextBox ID="txtDiscount1" runat="server" />

    <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender1" runat="server" OnFocusCssClass="maskedEdit"

    TargetControlID="txtDiscount1" Mask="9.99" MaskType="Number" OnBlurCssNegative="maskedEdit"

    OnInvalidCssClass="maskedEdit" ClearMaskOnLostFocus="false" InputDirection="LeftToRight"/>

     

     

    When no text is entered the txtDiscount1 has a value of "_.__". There needs to be an empty value.

     

    Help me correct this problem. 

     

    Thanks

    AK

     

     

    Thursday, March 13, 2008 7:13 PM

All replies

  • change ClearMaskOnLostFocus="false" to ClearMaskOnLostFocus="true"

     

    Wednesday, May 14, 2008 3:54 PM