|
The binding code is as follows:
<% # DataBinder.Eval (Container.DataItem, "adminRestore")%>
How to implement the function like below?
<% if (userpopedom.Trim () == "all" || userpopedom.Trim () == "newseditor") {%>
<tr height = "20"> <td>
<a href="admins/admin_addnews.aspx" target="right"> Add News </a> | <a href="admins/admin_managenews.aspx" target="right"> News Management </a> < / td>
</ tr>
<%}%>
That is, use an if statement to determine whether the length of <% # DataBinder.Eval (Container.DataItem, "adminRestore")%> is 0 to determine whether to display a certain piece of code. |
|