日期:2014-05-17  浏览次数:20591 次

Repeater 判断数据显示层

<asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound">
                            <ItemTemplate>
                                <% if (Eval("审核") == "是" || Eval("会员") == Session["会员标识"])
                                   { %>
                                <div class="hfnr">
                                    <div class="hf_top">
                                        <font color="#B92636"><%#Eval("楼层")%>楼</font>
                                        <a href="####" style="font-weight: bold; color: #004274;"><%#Eval("昵称") %></a>发表于 <%#Eval("回复时间") %>
                                    </div>
                                    <div><%#Eval("回复内容") %></div>
                                  
                                       
                                    </div>