[Javascript]
<Script language = "javascript" type = "text/javascript">
Function countNum ()
{
Var count = document. getElementById ("txtText"). value. length;
Document. getElementById ("lblCount"). value = count;
}
</Script>
<Script language = "javascript" type = "text/javascript">
Function countNum ()
{
Var count = document. getElementById ("txtText"). value. length;
Document. getElementById ("lblCount"). value = count;
}
</Script> [csharp] view plaincopyprint? <Asp: TextBox ID = "txtText" name = "txtText" runat = "server" Columns = "80" Rows = "8" TextMode = "MultiLine"
Width = "pixel PX" Height = "150px" onkeyup = "countNum ();"> </asp: TextBox>
(The word <input id = "lblCount" type = "button" style = "border-style: none; background: none;" value = "0"/> has been entered)
<Asp: TextBox ID = "txtText" name = "txtText" runat = "server" Columns = "80" Rows = "8" TextMode = "MultiLine"
Width = "pixel PX" Height = "150px" onkeyup = "countNum ();"> </asp: TextBox>
(The word <input id = "lblCount" type = "button" style = "border-style: none; background: none;" value = "0"/> has been entered)