日期:2014-05-17  浏览次数:20413 次

关于datalist控件如何选择性屏蔽linkButton控件
我前台代码是这样的:

<div style="width:1000px" align="center">
         <div style="width:1000px; font-size: 25px; font-weight: bold;" align="center">
           &nbsp;审核界面
         </div>
         <div style="width:1000px;" align="center">
         <asp:DataList ID="UserList" Width="1000px" runat="server" style=" border:1px solid black"
            UseAccessibleHeader="false" onitemcommand="UserList_ItemCommand" 
            CellPadding="4" HorizontalAlign="Center"  >
            <HeaderTemplate>
        <td style="width:100px;font-weight:bold; height:25px;" align="center" >申请部门</td>
        <td style="width:100px; font-weight:bold;" align="center">岗位名称</td>
        <td style="width:100px; font-weight:bold;" align="center">招聘人数</td>
        <td style="width:100px; font-weight:bold;" align="center">建议薪资</td>
        <td style="width:100px; font-weight:bold;" align="center">招聘原因</td>
        <td style="width:100px; font-weight:bold;" align="center">发布时间</td>
        <td style="width:130px; font-weight:bold;" align="center">主管</td>
        <td style="width:130px; font-weight:bold;" align="center">地方最高主管</td>
        <td style="width:130px; font-weight:bold;" align="center">人力资源部</td>
            </HeaderTemplate>
            <ItemTemplate>
            <td align="center">
                <%# Eval("G_CName")%></td><td align="center">
                <%# Eval("G_CName")%></td><td align="center">