如:
(Button)this.QueryControl.FindControl("queryButton"); 不直接具有button的属性。
解决:实例化一个新的对象。
Button btn = new Button();
btn = (Button)this.QueryControl.FindControl("queryButton");
btn.Attributes.。。。
如:
(Button)this.QueryControl.FindControl("queryButton"); 不直接具有button的属性。
解决:实例化一个新的对象。
Button btn = new Button();
btn = (Button)this.QueryControl.FindControl("queryButton");
btn.Attributes.。。。