forum

Home / DeveloperSection / Forums / Show message when user exceed limit size of a textbox in asp.net mvc app

Show message when user exceed limit size of a textbox in asp.net mvc app

Manish Kumar 1210 15-Nov-2017

Show message when user exceed limit size of a textbox in asp.net mvc app

I am developing a mvc application in that I want to display a message when the user types more than 20 characters in the textbox. This needs to validate without clicking on any validate button.

This is my current code :

<span class="field">@Html.TextBoxFor(d => d.Name,new {maxlength=20})</span>

c# mvc4 
Updated on 16-Nov-2017

Can you answer this question?


Answer

1 Answers

Liked By