G
Guest
hi, all
I just got a question here when I am using the datagrid, my code like this:
<aspataGrid 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>
<% } %>
.......
because I only want to show the edit button to web master.
But when I run it, it shows up an error and says, " Code blocks are not
supported in this context", So, can i do this in this page, or I must write
another similar page especially for web master?
Thanks
I just got a question here when I am using the datagrid, my code like this:
<aspataGrid 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>
<% } %>
.......
because I only want to show the edit button to web master.
But when I run it, it shows up an error and says, " Code blocks are not
supported in this context", So, can i do this in this page, or I must write
another similar page especially for web master?
Thanks