I want to be able to display current number of characters, in a asp label, written in a textbox while the user is currently writting in it. I've read partial articles on the web but none of them works.
I've tried using
<asp:TextBox ID="txtInput" runat="server" TextMode="MultiLine" onkeyup="Count(this.id)"></asp:TextBox>
and
<script type="text/javascript">
function Count(x) {
document.getElementById(lbNrChar).value = document.getElementById(x).value.length;
}
</script>
but without any success..