关于前台页面里写判断的问题!!初学者提问!
页面上有个Repeater控件,
<asp:Repeater ID="Repeater1" runat="server">
<ItemTemplate>
<table style="width:90%; font-size:12px; vertical-align:top;" >
<tr>
<td style=" text-align:left">
<img alt="13" src="images/article.gif" />
</td>
<td align="left" style=" width:70%; text-align:left; cursor:hand;" onclick="window.open('BrowseAds.aspx?id=<%#Eval("id") %>&type=1')">
<font onmouseout="this.style.color='black'" onmouseover="this.style.color='red'"> <%#Eval("Title") %></font>
</td>
<td style=" width:10%;">修改</td>
<td style=" width:20%;cursor:hand;"><%#Eval("Published", "{0:yyyy-MM-dd}")%></td>
</tr>
</table></ItemTemplate>
</asp:Repeater>
//////////////////////////////////////////////////////
我现在想实现这样的效果:Repeater判断后台字段name,字段name是当前的登陆用户,如果name=‘系统管理员’则Repeater里所有的行后面都显示一个‘修改’,如果Repeater里某行是当前登陆用户发布的话,则该行显示出‘修改’,name=<%#Eval("Publish")>,如果name即不是管理员也不是当前登陆用户,则什么都不显示,只显示个标题就OK了!
请问这个判断怎么实现?