The following are the list of new controls available in HTML 5
- Date pickers (date, month, week, time, datetime, datetime-local)
http://msdn.microsoft.com/en-us/magazine/hh547102.aspxASP.Net 4.5 introduced more possible values to the Text Mode attribute to cater the above requirements. Let us evaluate these. I have created a project in Visual Studio 2011 developer preview, and created a page named “controls.aspx”. In the page I placed on Text box control from the toolbox
<form id="form1" runat="server">Now let me run this page, IE 9 do not have the support for new form fields. I browsed the page using Firefox and the page appears as below.
Enter your email:
<asp:TextBox ID="TextBox1" runat="server" TextMode="Email"></asp:TextBox
<asp:Button ID="Button1" runat="server" Text="Submit" />
<input name="TextBox1" type="email" id="TextBox1" />Try to enter an invalid email and you will see the browser will ask you to enter a valid one by default.
See the browser support compatability matrix with these controls with various browser vendors.
Some more features in ASP.NET 4.5. Check out here.