<ItemTemplate> <asp:Button ID="Button2" runat="server" CommandName="test" Text="Button" /> </ItemTemplate> // Item command event protected void DetailsView1_ItemCommand(object sender, DetailsViewCommandEventArgs e) { if (e.CommandName == "test") { // code to save to db. } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)