<HTML> <HEAD> <STYLE> .normal {background-color: #FFFFFF;} .changed {background-color: "#AAAAFF";} </STYLE> <SCRIPT> function fnSetStyle(object){ object.className = "changed"; } function fnRemoveStyle(object){ object.className = "normal"; } </SCRIPT>And the textboxt tag add the CLASS and OnChange:
<INPUT TYPE="text" CLASS="normal" onChange="fnSetStyle(this)" NAME="oInput">>All,
>this.myTextBox.TextChanged += new System.EventHandler(this.TextBox_Changed); >>
>private void TextBox_TextChanged(object sender, System.EventArgs e) >{ > ((TextBox)sender).ForeColor = System.Drawing.Color.Red; >} >>