There are string length limitations in database structure (email is declared as nvarchar[30] for instance) There are lots of html forms that has input textbox fields that should be limited in length for that reason.
What is the best practice to synchronize database fields and html layout input fields length limitations (fot asp.net mvc and EF) ? How do you automatize this feature (declare html layout input fields the same max length as database data they represent)?
Thank you in advance.
虽然,您的HTML输入maxlength应该允许比最大有效长度多1个字符: http : //webdeavour.co.uk/articles/maxlength+hinders+usability
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.