AddAttribte
<div>
<span id="spanCounter"></span>
<br />
<asp:TextBox ID="TextBox1" runat="server" Text="Sample Text"
onkeyup="spanCounter.innerText = this.value.length;"></asp:TextBox>
</div>
乌龟才背着房子过一辈子
<div>
<span id="spanCounter"></span>
<br />
<asp:TextBox ID="TextBox1" runat="server" Text="Sample Text"
onkeyup="spanCounter.innerText = this.value.length;"></asp:TextBox>
</div>