Type or Namespace 'var' could not be found
<p>I'm working on an inline page to display some course information and keep getting a compilation error with the use of 'var'.</p>

<p>Can you check the following line of code and recommend ideas on fixing it.</p>

<pre><code>//Get basic template details
using (var objConn = new SqlConnection(strConnection))
{
objConn.Open();
</code></pre>

<p>My imported namespaces look like as follows.</p>

<pre><code>&lt;%@ Import Namespace="System.Data.SqlClient" %&gt;
&lt;%@ Import Namespace="System.IO" %&gt;
&lt;%@ Import Namespace="System.Net" %&gt;
&lt;%@ Import Namespace="System.Text" %
</code></pre>

<p>Any ideas?</p>

<p>EDIT</p>

<p>Version of .Net on the server - Microsoft .NET Framework Version:2.0</p>

<p>Thanks.</p>
