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

<pre><code>&lt;%@ Import Namespace="System.Query" %&gt;
</code></pre>

<p>However, this fails and tells me it cannot find the namespace.</p>

<blockquote>
  <p>The type or namespace name 'Query' does not exist in the namespace 'System' </p>
</blockquote>

<p>I have also tried with no luck:</p>

<ul>
<li><code>System.Data.Linq</code></li>
<li><code>System.Linq</code></li>
<li><code>System.Xml.Linq</code></li>
</ul>

<p>I believe that .Net 3.5 is working because <code>var hello = "Hello World"</code> seems to work.</p>

<p>Can anyone help please?</p>

<p>PS: I just want to clarify that I don't use Visual Studio, I simply have a <a href="http://www.ultraedit.com/" rel="nofollow noreferrer">Text Editor</a> and write my code directly into .aspx files.</p>

The
```
var hello
```
stuff is compiler magic and will work without Linq.
Try adding a reference to
```
System.Core
```
Sorry, I wasn't clear. I meant add
```
System.Core
```
to the web project's references, not to the page.
The
```
Import
```
on the page are basically just using statements, allowing you to skip the namespace on the page.