Data Access has been discontinued. Please refer to this page for more information.

Deleting Data

In this task, you will extend the code to enable you to delete existing Car objects.

  1. Open the Default.aspx page in Design view.
  2. Select the OpenAccessLinqDataSourceCar and set the EnableDelete property to True. This will enable the OpenAccessLinqDataSource control to automatically handle delete operations. You could find more information, here.

        ID="OpenAccessLinqDataSourceCar" runat="server" 
        EnableInsert="True" EnableUpdate="True" EnableDelete="True"