<script type="text/javascript" language="javascript"> function validatelimit(obj, maxchar) { if (this.id) obj = this; var remaningChar = maxchar - obj.value.length; document.getElementById('<%= Label1.ClientID %>').innerHTML = remaningChar; if (remaningChar <= 0) { obj.focus(); obj.value = obj.value.substring(maxchar, 0); alert('Character Limit exceeds!'); return false; } else { return true; } } </script>
<asp:TextBox ID="txt_Skill" runat="server" TextMode="MultiLine" onkeyup="validatelimit(this,50)"></asp:TextBox>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)