Hi, call JS function on textbox. use below code for this:
<asp:textbox id="txtBox" runat="server" width="150px" onkeypress="javascript:return isValidateLen(this);" xmlns:asp="#unknown"> </asp:textbox>
JS Function
function isValidateLen(txtID)
{
txtObj = document.getElementById(txtID);
if(txtObj.value.length < 200)
{
return true;
}
else
{
return false;
}
}