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

后端 未结 6 2150
囚心锁ツ
囚心锁ツ 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条回答
  •  误落风尘
    2020-12-02 00:12

    Whether or not it is accessible as a server control, you should be able to access the HttpRequest.Form collection and retrieve the value. No matter what the browser does with the tag, it has to submit a string to the server.

提交回复
热议问题