在一个表单中有一个textbot控件,在报表的load事件中如何使用其值.
string sql = "select xm from t_jp_jsry where xm='" +this.textBox2.Text.Trim() + "'"
在crystalReportViewer1_Load事件中,说textbox2.text不存在
string sql = "select xm from t_jp_jsry where xm='" +this.textBox2.Text.Trim() + "'"
在crystalReportViewer1_Load事件中,说textbox2.text不存在
就是这个原因的