c# 通过repeater实现前台换行
发布网友
发布时间:2022-05-05 18:02
我来回答
共1个回答
热心网友
时间:2022-04-27 14:08
刚刚测试通过
for (int i = 1; i <= Repeater1.Items.Count; i++)
{
if (i % 5 == 0)
{
LiteralControl lc = Repeater1.Items[i-1].Controls[0] as LiteralControl;
lc.Text += "<br />";
}
}