hi, all
我有一段代码大概像这样,
<asp:DataGrid id="DataGridBanner" runat="server"  style=....>
....
<Columns>
<% if(m_adUser.IsWebMaster()) { %>
      <asp:EditCommandColumn  Visible='<%# m_adUser.IsWebMaster()%>' 
ButtonType="PushButton" UpdateText="Update" CancelText="Cancel" 
EditText="Edit"></asp:EditCommandColumn>
<% } %>
......
因为我只想对web master 现实edit button, 但我run的时候,提示错误:
" Code blocks are not supported in this context", 这个有没有办法解决呢,还是我必须单独写个叶面为web master呢?
Thanks