开发者

ajaxToolkit:MaskedEditExtender mask producing percentage instead of number

开发者 https://www.devze.com 2023-03-08 06:08 出处:网络
I\'m using this mask: <ajaxToolkit:MaskedEditExtender Mask=\"99%\" MaskType=\"Number\" ClearMaskOnLostFocus=\"true\"

I'm using this mask:

<ajaxToolkit:MaskedEditExtender Mask="99%" MaskType="Number" ClearMaskOnLostFocus="true"
        ClearTextOnInvalid="true" AcceptNegative="Left" ID="percent" runat="server"
开发者_如何转开发        TargetControlID="txtDiscountPercentage">

The problem when I load the object, the text box having this mask gives the wrong number.

The value in database is decimal 5.00 and the value showed in the textbox is 50%.

What's wrong?


mask like this

<ajaxToolkit:MaskedEditExtender Mask="99.99#%" MaskType="Number" ClearMaskOnLostFocus="true"
            ClearTextOnInvalid="true" AcceptNegative="Left" ID="percent" runat="server"
            TargetControlID="txtDiscountPercentage">

http://danthar.tweakblogs.net/blog/2693/asp-punt-net-masked-edit-extender-displaying-percentage.html

0

精彩评论

暂无评论...
验证码 换一张
取 消