题
我
为什么会出现“对象未设置到对象的实例”
protected void GetData()
{
...
id = this.GetTabControl().ID; //<---------here
}
...
protected ASPxPageControl GetTabControl()
{
return (ASPxPageControl)this.FindControl("DetailTab");
}
---------我假定的FindControl不工作。
解决方案
大概是因为GetTabControl()
将返回null
。我们不知道的为什么的没有更多的代码虽然。
其他提示
GetTabControl()
必须返回一个空引用。
不隶属于 StackOverflow