Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>ASP.Net 4.0 HtmlGenericControl does not support the "Type" attribute as defined in your code, the error explains that, <strong><em>Parser Error Message: 'email' is not a valid type for an input tag.</em></strong>, this is a arguably a "well known" or easily discovered bug in the ASP.Net framework.</p> <p>There are several solutions that are outlined here:<br /> <a href="http://msdn.microsoft.com/en-us/magazine/hh547102.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/magazine/hh547102.aspxre</a><br /> Update the framework and use the Asp.Net TextBox control <a href="http://blogs.msdn.com/b/scothu/archive/2011/08/10/html-5-updates-for-net-4.aspx" rel="nofollow noreferrer">Scott Hunter - HTML 5 Updates for .NET 4</a><br /> Use a <a href="http://asphtml5.codeplex.com/" rel="nofollow noreferrer">3rd party ASP.Net Html5 UI control</a> such as the one available from Codeplex. <br /> <br /> A similar question is asked, and answered on the following SO posts:<br /> <a href="https://stackoverflow.com/questions/3232079/how-can-i-use-html5-email-input-type-with-server-side-net">How can I use HTML5 email input type with server-side .NET</a> - <em>This is the same issue as for the HtmlGenericControl however it is not addressed in the update</em><br /> <a href="https://stackoverflow.com/questions/4258281/input-types-on-server-side-controls">input types on server side controls</a></p> <p><br /> My personal preference ended up being to move to <a href="http://www.asp.net/mvc" rel="nofollow noreferrer">ASP.Net MVC 3</a>, its quite a steep learning curve and a big change from the "Web Forms" style of ASP.Net web development however its soon forgotten once you get used to the symantics and coding styles.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload