摘要: protected void repCurCity_ItemDataBound(object sender, RepeaterItemEventArgs e) { if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) { City cit = (City)e.Item.DataItem; if(cit.CityName.Equals(cityname)) { HtmlControl hc = (HtmlControl)e.Item.FindControl(&quo 阅读全文
posted @ 2011-08-03 09:48 jake2011 阅读(472) 评论(0) 推荐(0) 编辑
摘要: 效果是前三条信息标题红色的,后几条信息时黑色的 或者也可以是选中项为不同的应用样式 代码如下:<a id="a1" runat="server" href="#" style="color:#F00;" ><%# Eval("filename")%></a>后台设置:C# code protected void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e) { HtmlContr 阅读全文
posted @ 2011-08-03 09:44 jake2011 阅读(341) 评论(0) 推荐(0) 编辑