<% if (User.IsInRole(”admin”)) { %>
You can see this
<% } else { %>
You are no admin fool!
<%} %>

 

 

Used for Binding Expressions; such as Eval and Bind, most often found in data controls like GridView, Repeater, etc.:

    <asp:Repeater ID=”rptMeetings” DataSourceID=”meetings” runat=”server”>
    <ItemTemplate>
    <%# Eval(”MeetingName”) %>
    </ItemTemplate>
    </asp:Repeater>

相关文章:

  • 2021-09-30
  • 2021-11-30
  • 2022-12-23
  • 2021-05-31
  • 2021-05-17
  • 2021-07-04
  • 2021-08-18
  • 2021-07-01
猜你喜欢
  • 2021-05-16
  • 2021-08-21
  • 2022-01-16
  • 2021-08-27
  • 2021-11-20
  • 2021-12-23
相关资源
相似解决方案