我想实现这种效果:当insert时,当文本框获得焦点时,文本框里所带的原有的字自动消失;当update时文本框里的字要保留,不能消失!
我是用js实现字自动消失的:
string JS = "document.getElementById('" + this.txt_etc.ClientID + "').value=''";
 this.txt_etc.Attributes.Add("onClick", JS);
但是当进入update页面时,文本框获得焦点时,字也自动消失了!这不麻烦了啊?
请教各位大侠如何处理啊?