Updating Data
In this task, you will extend the code to enable you to update existing Car objects.
- Open the Default.aspx page in Source view.
-
Select the OpenAccessLinqDataSourceCar and set the EnableUpdate property to True. This will enable the OpenAccessLinqDataSource control to automatically handle update operations. You could find more information, here.
<telerik:OpenAccessLinqDataSource ID="OpenAccessLinqDataSourceCar" runat="server" EnableInsert="True" EnableUpdate="True" ContextTypeName="SofiaCarRental.Model.FluentModel" ResourceSetName="Cars"> </telerik:OpenAccessLinqDataSource>