私は、ASP.NET Ajax Control Toolkit MaskedEditExtender
が私の古いWebアプリケーションの1つで動作していないことが判明しました。ASP.NET Ajax Control Toolkit MaskedEditはIE9で壊れていますか?
私の使用:
<asp:TextBox
ID="TextBoxProductPrice"
runat="server"
CssClass="TextBoxProductPrice" />
<ajaxToolkit:MaskedEditExtender
ID="MaskedEditExtenderTextBoxProductPrice"
runat="server"
TargetControlID="TextBoxProductPrice"
Mask="9,999.99"
MaskType="Number"
MessageValidatorTip="False"
OnFocusCssClass="MaskedEditFocus"
OnInvalidCssClass="MaskedEditError"
InputDirection="RightToLeft"
AcceptNegative="None"
DisplayMoney="Left" />
<ajaxToolkit:MaskedEditValidator
ID="MaskedEditValidatorTextBoxProductPrice"
runat="server"
ControlToValidate="TextBoxProductPrice"
ControlExtender="MaskedEditExtenderTextBoxProductPrice"
Display="Dynamic"
IsValidEmpty="False"
EmptyValueMessage="Price is required"
InvalidValueMessage="Price is invalid"
MinimumValue= "0.01"
MinimumValueMessage="Price is too small"
MaximumValue="9999.99"
MaximumValueMessage="Price is too large" />
エラーがありません。それはちょうどキーストロークを正しく受け入れません。
それはそれは、Windows XP上のInternet Explorer 6で正しく動作するWindows 7の
上のInternet Explorer 9とChrome 12の両方で失敗します。
ASP.NET AJAX Control Toolkitは最新のブラウザと互換性がありませんか?
jQueryを使用するオプションはありますか?私は何年にもわたってajaxControl ToolKitと非常に多くの互換性の問題があります。私はもうこれを試すことはできませんhttp://digitalbush.com/projects/masked-input-plugin/ –
@feanz私はあなたが正しいと思います。マイクロソフトのツールキットは面倒です。いくつかのjQueryマネープラグインがあります。 http://plugins.jquery.com/plugin-tags/money –