How can I use HTML5 email input type with server-side .NET

Viewed 25994

As I understand it, the <input type=email> element in HTML5 will render as a simple text field in browsers that do not support the tag. On other browsers it will render properly, like on the iPhone it will bring up the e-mail keyboard layout.

I’d like to use this in a project but my input fields are <asp:TextBox> controls. How can I use the HTML5 element but still access its data server-side like the rest of my fields?

6 Answers

You need to create your own custom control and override the Render routines. Feel free to use either the source code or DLLs

Related