日期:2014-05-18 浏览次数:20415 次
protected void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e) { if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) { if ((string)DataBinder.Eval(e.Item.DataItem, "dj") != "") { Literal lt = (Literal)e.Item.FindControl("Lt1"); lt.Text += DataBinder.Eval(e.Item.DataItem, "dj") + "<IMG src= \"image/ding.gif\">"; } else { Literal lt = (Literal)e.Item.FindControl("Lt1"); lt.Text = (string)DataBinder.Eval(e.Item.DataItem, "dj"); } } }