How do I manage the MaxLength property of Multiline Mode ASP.NET TextBox?
You know we can manage the number of maximum characters of the ASP.NET TextBox through MaxLength property. We just need to set the numeric value to MaxLength property and ASP.NET TextBox will handle it. But if we alter the ASP.NET TextBox to Multiline mode, the MaxLength property will not accomplish its job by restricting the maximum characters.
But luckily, we can limit the maximum characters of Multiline Mode ASP.NET TextBox by using JavaScript or Regular Expression.
JavaScript Solution:
Regular Expression Solution:
Labels: ASP.NET




0 Comments:
Post a Comment
<< Home