为什么我得到“对象引用未设置为对象的实例”
protected void GetData()
{
...
id = this.GetTabControl().ID; //<---------here
}
...
protected ASPxPageControl GetTabControl()
{
return (ASPxPageControl)this.FindControl("DetailTab");
}
---------我假设 FindControl 不起作用。