Reapter的嵌套问题:
未将对象引用设置到对象的实例protected void Page_Load(object sender, EventArgs e)
{
DataTable d1 = new DataTable();
d1.Columns.Add( "type_id ");
d1.Columns.Add( "type_name ");
DataRow dr1 = d1.NewRow();
dr1[ "type_id "] = 1;
dr1[ "type_name "] = "Asp.NET相关 ";
d1.Rows.Add(dr1);
DataRow dr2 = d1.NewRow();
dr2[ "type_id "] = 2;
dr2[ "type_name "] = "JavaScript相关 ";
d1.Rows.Add(dr2);
DataRow dr3 = d1.NewRow();
dr3[ "type_id "] = 3;
dr3[ "type_name "] = "AJAX相关 ";
d1.Rows.Add(dr3);
this.rpt_type.DataSource = d1;
this.rpt_type.DataBind();
}
protected void rpt_type_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
DataTable d2 = new DataTable();
d2.Columns.Add( "content_id ");
d2.Columns.Add( "Content_name ");
for (int i = 0; i < 10; i++)
&