2
Answers

how to restrict or fix the words/character length-in-textbox

Hello Every one,

Any one can tell me how to limit or fix the words/character length-in-text box by Dot net(C#) or HTML. 
Answers (2)
0
Abhimanyu Singh

Abhimanyu Singh

NA 111 39.5k 12y
Thank you Sir,
but i found the ease code for validate the text box :

<asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ErrorMessage="Max 300 char" ValidationExpression="[\s\S]{1,300}" ControlToValidate="TextBox6" ForeColor="Red"></asp:RegularExpressionValidator>

its working well
0
Satyapriya Nayak

Satyapriya Nayak

NA 53k 8m 12y
http://www.c-sharpcorner.com/uploadfile/bryianTan/limit-number-of-characters-in-textbox-control/default.aspx