O'Reilly logo

Pro HTML5 with Visual Studio 2012 by Mark Collins

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 2

image

ASP.NET Web Forms

In this chapter I will demonstrate some of the new input types defined by HTML5 and show you how to use these in an ASP.NET web form. Typically, the TextBox control is used when data needs to be entered on a form. Users can enter all kinds of data in a TextBox including strings, numbers, dates, and so on. To ensure valid data, the form would need to supply either server-side or client-side validation logic. The HTML5 specification provides several new input types that can provide much of this for you.

The following input types are defined (however, not all browsers support all of them yet):

  • select
  • color
  • datetime (including ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required