坑出翔啊!!!如果定义一个class,里面定义的是属性,Repeater会获取不到,提示此属性不存在,必须定义成访问器
Repeater可以访问
public class SummaryList
{
public int ID { set; get; }
public string Name { set; get; }
public int TotalCnt { set; get; }
public int CommonCnt { set; get; }
public int ProjectCnt { set; get; }
public int FZBCnt { set; get; }
public int SectionCnt { set; get; }
public decimal PassedCnt { set; get; }
Repeater无法访问的错误代码
public class SummaryList
{
public int ID;
public string Name;
public int TotalCnt;
public int CommonCnt;
public int ProjectCnt;
public int FZBCnt;
public int SectionCnt;
public decimal PassedCnt;
}
纪念一下此坑,再也不会用了!!