.aspx呢?
有没有Delete按钮?

解决方案 »

  1.   

    <%@ Page language="c#" Codebehind="Default.aspx.cs" AutoEventWireup="false" Inherits="Web_AWAR.Admin._Default" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
    <HTML>
    <HEAD>
    <title>Default</title>
    <meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
    <meta content="C#" name="CODE_LANGUAGE">
    <meta content="JavaScript" name="vs_defaultClientScript">
    <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
    <LINK href="../Primary/Main.css" type="text/css" rel="stylesheet">
    <!-- 重做时确认对话框 -->
    <script language="javascript">
    //function delete_confirm(e) {
    //if (event.srcElement.outerText == "删除...")
    //event.returnValue =confirm("您确认要删除吗?");
    //}
    //document.onclick=delete_confirm;
    </script>
    </HEAD>
    <body>
    <form id="Default" method="post" runat="server">
    <FONT face="宋体">
    <TABLE id="Table1" borderColor="#cccccc" height="440" cellSpacing="0" cellPadding="0" width="780" align="left" border="1">
    <TR>
    <TD width="780" height="80">
    <H1 align="center"><FONT face="宋体">ADSL 回单考核和知识库系统</FONT>
    </H1>
    <P align="center"><FONT size="4"><STRONG>员工信息管理</STRONG></FONT></P>
    </TD>
    </TR>
    <FONT face="宋体">
    <TR>
    <TD vAlign="center" align="middle" width="780" height="300"><FONT face="宋体"><asp:datagrid id="UserList" runat="server" AllowPaging="True" AutoGenerateColumns="False" BorderWidth="1px">
    <AlternatingItemStyle BackColor="#E0E0E0"></AlternatingItemStyle>
    <ItemStyle HorizontalAlign="Center" Height="25px"></ItemStyle>
    <HeaderStyle Font-Bold="True" HorizontalAlign="Center" Height="30px" ForeColor="White" BackColor="Navy"></HeaderStyle>
    <Columns>
    <asp:BoundColumn DataField="UserID" HeaderText="工号">
    <HeaderStyle Width="80px"></HeaderStyle>
    </asp:BoundColumn>
    <asp:BoundColumn DataField="Password" HeaderText="密码">
    <HeaderStyle Width="120px"></HeaderStyle>
    </asp:BoundColumn>
    <asp:BoundColumn DataField="Name" HeaderText="姓名">
    <HeaderStyle Width="50px"></HeaderStyle>
    </asp:BoundColumn>
    <asp:BoundColumn DataField="Status" HeaderText="工号状态">
    <HeaderStyle Width="80px"></HeaderStyle>
    </asp:BoundColumn>
    <asp:BoundColumn DataField="Area" HeaderText="所属区域">
    <HeaderStyle Width="80px"></HeaderStyle>
    </asp:BoundColumn>
    <asp:BoundColumn DataField="Right" HeaderText="权限">
    <HeaderStyle Width="80px"></HeaderStyle>
    </asp:BoundColumn>
    <asp:EditCommandColumn ButtonType="LinkButton" UpdateText="更新" HeaderText="修改记录" CancelText="取消" EditText="修改...">
    <ItemStyle Width="80px"></ItemStyle>
    </asp:EditCommandColumn>
    <asp:ButtonColumn Text="删除..." HeaderText="删除记录">
    <ItemStyle Width="80px"></ItemStyle>
    </asp:ButtonColumn>
    </Columns>
    <PagerStyle HorizontalAlign="Right" Mode="NumericPages"></PagerStyle>
    </asp:datagrid></FONT></TD>
    </TR>
    <TR>
    <TD width="780" height="60"><FONT face="宋体">&nbsp;</FONT></TD>
    </TR>
    </TABLE>
    </FONT></FONT></form>
    </body>
    </HTML>
      

  2.   

    <asp:ButtonColumn Text="删除..." HeaderText="删除记录">
    ====>
    <asp:ButtonColumn Text="删除..." HeaderText="删除记录" CommandName="Delete">try it.
      

  3.   

    没有类似
    <asp:EditCommandColumn ButtonType="LinkButton" UpdateText="更新" HeaderText="修改记录" CancelText="取消" EditText="修改..."><ItemStyle Width="80px"></ItemStyle></asp:EditCommandColumn>
    的控件??
      

  4.   

    <asp:ButtonColumn Text="删除..." HeaderText="删除记录" CommandName="Delete">
    详细的请看:
    ms-help://MS.VSCC/MS.MSDNVS.2052/cpref/html/frlrfSystemWebUIWebControlsButtonColumnClassCommandNameTopic.htm那样的控件我还未见过。