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

后端 未结 6 2151
囚心锁ツ
囚心锁ツ 2020-12-01 23:42

As I understand it, the element in HTML5 will render as a simple text field in browsers that do not support the tag. On other browsers

6条回答
  •  猫巷女王i
    2020-12-01 23:53

    There is an update for .NET framework 4 which allows you to specify the type attribute

    http://support.microsoft.com/kb/2468871.

    See feature 3 way down the page

    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:

    
    

提交回复
热议问题