This article is a mirror article of machine translation, please click here to jump to the original article.

View: 12412|Reply: 0

[ASP.NET] asp.net solve the problem that HTML5 is not compatible with the built-in verification type attribute

[Copy link]
Posted on 8/18/2015 3:08:22 PM | | |
HTML5 introduces some new input tags, which include number, range, email, url, color, date, datetime, etc. They don't fully support all browsers at the moment. But as a Web Developer, you need to know them. HTML5 provides the following types of <Input>tags:


Email (email)

URL (url)

Telephone No. (tel)

Number (number)

Range (range)

Color (color)

Date (date)

Month (month)

Week (week)

Time (time)

Date Time - UTC (datetime)

Date Time - Local (datetime-local)

Search (search)
html5 comes with a validation function, but using the type="email" attribute in the asp.net will report an error, and the solution is to change TextMode="Email" to this attribute.




Previous:Share a few resume templates for your friends who are about to graduate
Next:Computer hard disk C5 warning, what to do
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com