前台
OnItemDataBound="esfRepeater_OnItemDataBound"
 //数据绑定后激发的事件
        int i = 0;
        protected void esfRepeater_OnItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            if (i % 4 == 0)
            {
                e.Item.Controls.Add(new LiteralControl("</div><div class='floatl'>"));
            }
            i++;
        }
        int j = 0;
        protected void rentRepeater_OnItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            if (j % 4 == 0)
            {
                e.Item.Controls.Add(new LiteralControl("</div><div class='floatl'>"));
            }
            j++;
        }

 <%#(System.Data.DataRowView(Container.DataItem))["ClassName"]%>说是这个比eval性能高

相关文章:

  • 2022-01-21
  • 2022-12-23
  • 2021-11-28
  • 2021-11-20
  • 2021-12-06
  • 2021-11-19
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-05-23
  • 2021-09-28
相关资源
相似解决方案