给Repater增加等号
//不改变数据结构的情况下,增加行号。对Application服务器压力增大,减少DB服务器压力。
protected void repShow_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.AlternatingItem || e.Item.ItemType == ListItemType.Item)
{
Literal ltTmp = e.Item.FindControl("ltRow") as Literal;
if (ltTmp != null)
{
int pinx = pcCmsContent.CurrentIndex;
int psize = pcCmsContent.PageSize;
ltTmp.Text = (pinx * psize + 1 + e.Item.ItemIndex).ToString();
}
}
}