摘要:HTML5 Updates for .NET 4
近期內有二個.NET 4 Framework的更新套件,修正及調整了不少項目,其中有幾點是跟HTML5有關,在此稍微整理如下,若有缺失,還請見諒!
另外,建議有用.NET 4的朋友們,若有未更新的人,不仿更新一下這些套件吧!
Update for the .NET Framework 4
Feature 3
New syntax lets you define a TextBox control that is HTML5 compatible. For example, the following code defines a TextBox control that is HTML5 compatible:
<asp:TextBox runat="server" type="some-HTML5-type" />
Reliability Update 1 for the .NET Framework 4
Issue 12
When the ASP.NET UpdatePanel control class constructs the postback arguments, the following issues occur:
- JavaScript code does not handle the new input types of HTML5 specifications.
- Some input values of HTML5 specifications are ignored and excluded.
The ASP.NET UpdatePanel control class uses the JavaScript code to constructs the postback arguments that handle partial postback operations. The JavaScript code handles only known input types of HTML4 specifications and ignores other input types. However, HTML5 specifications introduce some new input types for input elements. Therefore, this issue occurs when you run JavaScript code in a browser that supports some input values of HTML5 specifications.
Issue 13
Some ASP.NET 4.0 features encounter issues when these feature process HTML5 code. These features were designed in ASP.NET 4.0 to support only HTML4 specifications.
After you apply this update, the following features are updated to support HTML5 input types in ASP.NET 4.0:
- UpdatePanel
- Web form Callbacks
- Client-side validation