//  getCharCount
/*

protected void Page_Load(object sender, EventArgs e)
{

    txtCount.Text = txtDescription.MaxLength.ToString();
    
    txtDescription.Attributes.Add("onKeyUp", 
       "javascript:document.getElementById('"+ txtCount.ClientID + 
       "').setAttribute('value', (" + txtDescription.MaxLength + 
       " - parseInt(document.getElementById('" + txtDescription.ClientID + 
       "').getAttribute('value').length)));");
}
public int MaxLength
{
    get { return txtDescription.MaxLength; }
    set { txtDescription.MaxLength = value; }
}

*/
