protected void dtSituation_ItemDataBound(object sender, DataListItemEventArgs e)
{
if ((e.Item.ItemIndex + 1) % 5 == 0)
{
Literal lit = new Literal();
lit.Text = "<hr style='border:2px dotted gray;'>";
e.Item.Controls.Add(lit);
}


}

相关文章:

  • 2022-12-23
  • 2022-02-11
  • 2022-12-23
  • 2022-01-26
  • 2022-01-21
  • 2022-12-23
  • 2022-02-23
  • 2022-12-23
猜你喜欢
  • 2022-01-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2021-11-27
相关资源
相似解决方案