如何在index.aspx文件中判断某用户登陆后,index.aspx页面显示"删除"两字.比如asp写的这类程序判断.
index.asp文件.<td align="right" width="54" height="28" bgcolor="#EEEEEE">
<font color="#FF0000">
<%if session("username")="admin" then%>
     <a href=delete.asp?ID=<%=rs("reID")%>&ID=<%=rs("ID")%> title="点这儿将删除特定信息" onclick="return ConfirmDel();">删除</a>
<%end if%>
</font>
</td>把这类判断换成C#.net应该如何写? 是直接在index.aspx页面上写还是在index.aspx.cs程序文件里面写? 谢谢各位.