ASP.NET MVC Interface Controls - Textbox -
MaxLength property


MaxLength="10"


MaxLength="5"



Use the MaxLength property to specify the maximum number of characters that can be typed into the textbox.
C#
Html.Obout(new OboutTextBox("txt1") { MaxLength = 10 })

"Thanks much. The trees seem to be working exactly as we want and we do appreciate the timely resolution. As our project moves further along the design process, we find ourselves utilizing Obout controls more and more and it's comforting to know that your support system is so responsive."

Kevin Holder
Tennessee Department of Human Services

Random testimonial   All testimonials