ASP.Net 4.5文本框新模式 [英] ASP.Net 4.5 Textbox New Modes
本文介绍了ASP.Net 4.5文本框新模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个问题,新的asp.net文本框模式(如日期和时间)不适用于IE11。我已经在各种PC上尝试过,但它仍无法正常工作。 Chrome可以100%运行。该网站已配置为asp.net 4.5?有什么建议吗?
我的代码:
< asp:TextBox ID =EndDaterunat =serverTextMode = 日期 >
使用IE 10或11时Textmode =Date不起作用。它在Chrome上运行正常。
Web.config
Hi, I have a problem where the new asp.net textbox modes (such as date and time) do not work with IE11. I have tried it on various PCs but still it does not work. Chrome works 100%. The site has been configured to asp.net 4.5? Any suggestions?
My code:
<asp:TextBox ID="EndDate" runat="server" TextMode="Date">
The Textmode="Date" does not work when using IE 10 or 11. It works fine on Chrome.
Web.config
<httpRuntime targetFramework="4.5" />
<machineKey compatibilityMode="Framework45" />
<compilation debug="true" strict="false" explicit="true" targetFramework="4.5"
<add key="aspnet:UseTaskFriendlySynchronizationContext" value="false" />
<add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />
推荐答案
这些模式与.NET无关,这些是输入元素的新HTML5功能,其中大部分都是IE不支持(包括11) - http://html5test.com/compare/browser/ie-11.html [ ^ ]
These modes have nothing to do with .NET, these are new HTML5 features of the input element, most of them are not supported by IE (including 11) - http://html5test.com/compare/browser/ie-11.html[^]
这篇关于ASP.Net 4.5文本框新模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文