开发者

ajaxToolkit:MaskedEditExtender mask producing percentage instead of number

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜