简体   繁体   English

MaskEditExtender Ajax工具包-无法复制粘贴IE 11

[英]MaskEditExtender Ajax toolkit- not able to copy paste IE 11

I have two date textboxes in my ASP.Net application and these textboxes are using MaskEditExtender so that only date can be entered in them. 我的ASP.Net应用程序中有两个日期文本框,这些文本框使用MaskEditExtender,因此只能在其中输入日期。 These textboxes are actually from and to textboxes to enter a date range. 这些文本框实际上是用于输入日期范围的文本框。 The issue is that in IE 11 the user is not able to copy-paste date from one text box to other using Ctrl+C and Ctrl+V. 问题在于,在IE 11中,用户无法使用Ctrl + C和Ctrl + V从一个文本框复制粘贴日期到另一个文本框。 The user is able to paste the date by right clicking and selecting copy paste but in this also the date does not get properly formatted in the second textbox. 用户可以通过右键单击并选择复制粘贴来粘贴日期,但是在第二个文本框中,日期也无法正确格式化。 In IE8 and lower browsers it worked fine. 在IE8和更低版本的浏览器中,它工作正常。 Sample code used:- 使用的示例代码:-

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>

    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <div>
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
        <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender1" runat="server" TargetControlID="TextBox1" 
            Mask="99/99/9999" MaskType="Date" ClipboardEnabled="true"/>
        <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender2" runat="server"  TargetControlID="TextBox2"
             Mask="99/99/9999" MaskType="Date" ClipboardEnabled="true"/>
        </div>
    </form>
</body>
</html>

Please suggest. 请提出建议。

Yes, there is a bug that was fixed recently, but this fix is not published at the moment. 是的,最近有一个错误已修复,但是此修复程序目前尚未发布。

You can see changes here or wait for new ACT release. 您可以在此处查看更改或等待新的ACT发布。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM