1、<asp:textbox> 为readonly时,通过JS改变的值不能被后台读取。
解决:默认不设置为readonly,初次加载(ispostback判断)时候设置为readonly。
this.Texx_JDXY.Attributes.Add("readonly", "readonly");
this.Texx_JDXQ.Attributes.Add("readonly", "readonly");
//通过下面的方法设置后仍旧不能读取
//this.Texx_JDXY.ReadOnly = true;
//this.Texx_JDXQ.ReadOnly = true;