in this code when i press delete or update button nothing happens. do i need to
put code in ondeletecommand="DataList1_DeleteCommand" and
onupdatecommand="DataList1_UpdateCommand" to delete or update particular row? in
gridview i didnt have to do anything
<asp

ataList ID="DataList1" runat="server" DataKeyField="CustomerID"
DataSourceID="SqlDataSource2" GridLines="Both"
RepeatDirection="Horizontal" oneditcommand="DataList1_EditCommand"
oncancelcommand="DataList1_CancelCommand"
onupdatecommand="DataList1_UpdateCommand">
<ItemTemplate>
<asp:Button runat="server" Text="Edit" Id="ItemEditButton"
CommandName="edit"/>
<asp:Button runat="server" Text="Delete" ID="ItemDeleteButton"
CommandName="delete" />
<br />
AddressID:
<asp:Label ID="AddressIDLabel" runat="server" Text='<%#
Eval("AddressID") %>' />
<br />
CustomerID:
<asp:Label ID="CustomerIDLabel" runat="server" Text='<%#
Eval("CustomerID") %>' />
<br />
Adress:
<asp:Label ID="AdressLabel" runat="server" Text='<%#
Eval("Adress") %>' />
<br />
Country:
<asp:Label ID="CountryLabel" runat="server" Text='<%#
Eval("Country") %>' />
<br />
<br />
</ItemTemplate>
<EditItemTemplate>
<asp:Button ID="ButtonEditUpdate" Text="Update"
CommandName="update" runat="server" />
<asp:Button ID="ButtonEditCancle" Text="Cancle"
CommandName="cancel" runat="server" />
<br />
AddressID:
<asp:TextBox ID="AddressIDTextBox" runat="server" Text='<%#
Eval("AddressID") %>' />
<br />
CustomerID:
<asp:TextBox ID="CustomerIDTextBox" runat="server" Text='<%#
Eval("CustomerID") %>' />
<br />
Adress:
<asp:TextBox ID="AdressTextBox" runat="server" Text='<%#
Eval("Adress") %>' />
<br />
Country:
<asp:TextBox ID="CountryTextBoxl" runat="server" Text='<%#
Eval("Country") %>' />
<br />
<br />
</EditItemTemplate>
</asp

ataList>
<asp:SqlDataSource ID="SqlDataSource2" runat="server"
ConnectionString="<%$ ConnectionStrings:myDbConnectionString %>"
OldValuesParameterFormatString="original_{0}"
SelectCommand="SELECT * FROM [Adresses] WHERE ([CustomerID] =
@CustomerID)"
ConflictDetection="CompareAllValues"
DeleteCommand="DELETE FROM [Adresses] WHERE [CustomerID] =
@original_CustomerID AND [AddressID] = @original_AddressID AND [Adress] =
@original_Adress AND [Country] = @original_Country"
InsertCommand="INSERT INTO [Adresses] ([AddressID], [CustomerID],
[Adress], [Country]) VALUES (@AddressID, @CustomerID, @Adress, @Country)"
UpdateCommand="UPDATE [Adresses] SET [AddressID] = @AddressID,
[Adress] = @Adress, [Country] = @Country WHERE [CustomerID] =
@original_CustomerID AND [AddressID] = @original_AddressID AND [Adress] =
@original_Adress AND [Country] = @original_Country">
<SelectParameters>
<asp:ControlParameter ControlID="GridView1" Name="CustomerID"
PropertyName="SelectedValue" Type="Int32" />
</SelectParameters>
<DeleteParameters>
<asp:Parameter Name="original_CustomerID" Type="Int32" />
<asp:Parameter Name="original_AddressID" Type="Int32" />
<asp:Parameter Name="original_Adress" Type="String" />
<asp:Parameter Name="original_Country" Type="String" />
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="AddressID" Type="Int32" />
<asp:Parameter Name="Adress" Type="String" />
<asp:Parameter Name="Country" Type="String" />
<asp:Parameter Name="original_CustomerID" Type="Int32" />
<asp:Parameter Name="original_AddressID" Type="Int32" />
<asp:Parameter Name="original_Adress" Type="String" />
<asp:Parameter Name="original_Country" Type="String" />
</UpdateParameters>
<InsertParameters>
<asp:Parameter Name="AddressID" Type="Int32" />
<asp:Parameter Name="CustomerID" Type="Int32" />
<asp:Parameter Name="Adress" Type="String" />
<asp:Parameter Name="Country" Type="String" />
</InsertParameters>
</asp:SqlDataSource>