如何在网格视图中添加删除,更新或编辑按钮?

时间:2013-06-21 09:40:11

标签: c# asp.net

我是否知道如何根据以下代码在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"/>

Save view state data into database Error

2 个答案:

答案 0 :(得分:0)

答案 1 :(得分:0)