我Repeter 控件中的模板是一个个的用户自定义控件 , 现在希望能向这些自定义控件中传递变量
case QLCZhouShiType.JiBen:
Table.HeaderTemplate = LoadTemplate("template/HeadBase.ascx");
Table.ItemTemplate = LoadTemplate("template/ItemBase.ascx");
Table.FooterTemplate = LoadTemplate("template/FooterBase.ascx");
Table.DataSource = yuansu;
break;
case QLCZhouShiType.DaXiao:
Table.ItemTemplate = LoadTemplate("template/ItemDaXiao.ascx");
Table.HeaderTemplate = LoadTemplate("template/HeadDaXiao.ascx");
Table.DataSource = yuansu;
break;希望给FooterBase的属性或共有字段赋值
case QLCZhouShiType.JiBen:
Table.HeaderTemplate = LoadTemplate("template/HeadBase.ascx");
Table.ItemTemplate = LoadTemplate("template/ItemBase.ascx");
Table.FooterTemplate = LoadTemplate("template/FooterBase.ascx");
Table.DataSource = yuansu;
break;
case QLCZhouShiType.DaXiao:
Table.ItemTemplate = LoadTemplate("template/ItemDaXiao.ascx");
Table.HeaderTemplate = LoadTemplate("template/HeadDaXiao.ascx");
Table.DataSource = yuansu;
break;希望给FooterBase的属性或共有字段赋值
这问题 困扰好几天了 希望明白的给个 简单示意