我是否知道如何根据以下代码在griview中删除,更新或编辑按钮?
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
<asp:TextBox ID="test1" runat="server"/>
<asp:TextBox ID="test2" runat="server"/>
<asp:DropDownList ID = "test3" runat="server" AutoPostBack="false" ></asp:DropDownList>
<asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" />
<asp:GridView ID="GridView1" runat="server" ></asp:GridView>
<asp:Button ID="Button2" runat="server" Text="Button" OnClick="Button2_Click"/>
答案 0 :(得分:0)
参见这篇文章
<强> article is about CRUD Operation in GridView in ASP.NET(Add/Update/Delete) Programmetrically 强>
逐步解释
答案 1 :(得分:0)