Import Namespace System.Query

Posted by GateKiller on Stack Overflow See other posts from Stack Overflow or by GateKiller
Published on 2008-08-12T10:37:50Z Indexed on 2010/05/11 3:14 UTC
Read the original article Hit count: 351

Filed under:
|

I am trying to load Linq on my .Net 3.5 enabled web server by adding the following to my .aspx page:

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

However, this fails and tells me it cannot find the namespace.

The type or namespace name 'Query' does not exist in the namespace 'System'

I have also tried with no luck:

  • System.Data.Linq
  • System.Linq
  • System.Xml.Linq

I believe that .Net 3.5 is working because var hello = "Hello World" seems to work.

Can anyone help please?

Cheers, Stephen

PS: I just want to clarify that I don't use Visual Studio, I simple have a Text Editor and write my code directly into .aspx files.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about LINQ