CSDN博客

img xuandhu

DataGrid的删除和修改

发表于2004/10/19 20:37:00  909人阅读

分类: ASP.NET数据处理

<%@ Page Language="vb" AutoEventWireup="false" Codebehind="test1.aspx.vb" Inherits="admin.test1"%><%@ Page Language="vb" AutoEventWireup="false" Codebehind="test1.aspx.vb" Inherits="admin.test1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
 <HEAD>
  <title>test1</title>
  <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
  <meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
  <meta name="vs_defaultClientScript" content="JavaScript">
  <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
 </HEAD>
 <body>
  <form id="Form1" method="post" runat="server">
   <FONT face="宋体">
    <asp:DataGrid id="DataGrid1" runat="server" AutoGenerateColumns="False">
     <Columns>
      <asp:BoundColumn DataField="id"></asp:BoundColumn>
      <asp:BoundColumn DataField="art_title"></asp:BoundColumn>
      <asp:EditCommandColumn ButtonType="LinkButton" UpdateText="更新" CancelText="取消" EditText="编辑"></asp:EditCommandColumn>
      <asp:ButtonColumn Text="删除" CommandName="Delete"></asp:ButtonColumn>
     </Columns>
    </asp:DataGrid></FONT>
  </form>
 </body>
</HTML>
阅读全文
0 0

相关文章推荐

img
取 消
img