<asp:UpdatePanel ID="dddd" runat="server"> <contenttemplate> <script type="text/javascript"> function textCounter(field, countfield, maxlimit) { if (field.value.length > maxlimit) field.value = field.value.substring(0, maxlimit); else countfield.value = maxlimit - field.value.length; } </script> <asp:Label ID="Label100" runat="server" style=" position:absolute; top:820px;left:970px;width: 27px;height:13px;font-size:small;" Text="char"> <input readonly="readonly" type="text" name="remLen" size="3" maxlength="3" value="200" style="z-index: 1; left: 940px; top: 820px; width:20px; height:13px; font-size:x-small; position: absolute" /> <asp:TextBox ID="TBMessage" runat="server" OnTextChanged="TBMessage_TextChanged" AutoPostBack="True" onkeyup ="textCounter(TBMessage,this.form.remLen,200);" onkeydown="textCounter(TBMessage,this.form.remLen,200);" style="z-index: 1; top: 585px; left: 600px; position: absolute; resize:none ; height: 233px; width: 400px" TextMode="MultiLine"></contenttemplate>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)