日期:2014-05-17 浏览次数:20415 次
Entity.laizhen[] Model = DAL.Common.Select<Entity.laizhen>(1, 1, "1=1", "newid()"); for (int i = 0; i < Model.Length; i++) { Entity.news[] nn = DAL.Common.Select<Entity.news>(1, 1, "tit like '%" + Model[i].tit + "%'", "newid()"); if (nn.Length == 1) { Model[i].gg1 = nn[0].tit; Model[i].gg2 = Model[i].tit; Model[i].tid = nn[0].id; Model[i].gg3 = ""; } else { Model[i].gg1 = ""; Model[i].gg3 = " 【完善文章】"; Model[i].gg2 = Model[i].tit; } } Repeater1.DataSource = Model; Repeater1.DataBind();