When coding inline not in codebehind then a import statement is a must in aspx page like we have to import

<%@ Import Namespace="System.Linq" %>

when we are calling linq generated classes for the database or else a error is thrown

Expression of type ‘System.Data.Linq.Table(Of xxx)’ is not queryable. Make sure you are not missing an assembly reference and/or namespace import for the LINQ provider.