Page 1 of 1

Using in ASP.Net LINQDatasource

Posted: Thu 13 Nov 2008 18:40
by acadalzo
I'm using Visual Studio 2008 to create an ASP.Net app. I created a datacontext and I reference it in a LinqDataSource control. Then I bind a gridview control to the LinqDataSource control. When I run the app, my data is presented in the gridview. The gridview has an 'Edit' button which I click and then I change some text in the gridview. Then I click the 'Update' button provided in the gridview and get this error:

>> The data context used by LinqDataSource 'LinqDataSource1' must extend DataContext when the Delete, Insert or Update operations are enabled. <<

Does that mean I can't use the DataContext for inserts/updates via the ASP.Net LinqDataSource control? Or is there something else I need to do?

Thanks,
Al

Posted: Fri 14 Nov 2008 10:19
by Shalex
The code created by Microsoft can work only with Microsoft provider.