Use database field maxlength as html layout input maxlength best practice. asp.net mvc
Posted
by Andrew Florko
on Stack Overflow
See other posts from Stack Overflow
or by Andrew Florko
Published on 2010-05-13T04:30:47Z
Indexed on
2010/05/13
4:34 UTC
Read the original article
Hit count: 267
Hello everybody,
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 ? Can it be done automatically (html layout input fields declared the same max length as database data they represent)?
Thank you in advance.
© Stack Overflow or respective owner