我的代码:if(sdr["ODF_port"].ToString()==this.odfinf_port)
{
this.Table1.Style.Add("backgroundColor","#000000");
}提示错误:未将对象引用设置到对象的实例我的table1是在一个自定义控件里面的,其他页面再插入自定义控件的!~
{
this.Table1.Style.Add("backgroundColor","#000000");
}提示错误:未将对象引用设置到对象的实例我的table1是在一个自定义控件里面的,其他页面再插入自定义控件的!~
然后再在.cs代码里
if(sdr["ODF_port"].ToString()==this.odfinf_port)
{
this.Table1.Style.Add("backgroundColor","#000000");
}