Error message when trying to use LINQ to SQL class for paging

Error: Type or namespace name could not be found

Posted 25 March 2010 - 07:13 PM

I am trying to use data source paging to page through records in grid view. I have created a LINQ to SQL class called BulkViewHistory.dbml. The name property of this class is set to BulkViewHistoryDataContext. Their is no Context Namespace or Entity Namespace values.

Now I have another class called BulkHistoryPaging.cs. Here is the code in that class.

What it keeps erroring out on is the BulkViewHistoryDataContext. I receive an error message that says "The type or namespace name 'BulkViewHistoryDataContext' could not be found (are you missing a using directive or an assembly directive?).