日期:2014-05-17 浏览次数:20444 次
List<Model.tags> tagsList = Bll.tagsService.Instance.GetModelList("tagId between 1 and 9");
if (tagsList != null && tagsList.Count > 0)
{
rpCuisine.DataSource = tagsList;
rpCuisine.DataBind();
}
<asp:Repeater ID="rpCuisine" runat="Server">
<ItemTemplate>
<a class='<%#Convert.ToInt32(Eval("tagId"))==iCuisineId?"active":"" %>' href="<%#dingGenerateurl("cuisineid", Eval("tagId").ToString())%>">
<%#Eval("tagName")%>
</a>
</ItemTemplate>
</asp:Repeater>