Reference in ASPX file is not working as in ASPX.CS file
<p>I am using <a href="http://code.google.com/p/google-api-for-dotnet/" rel="nofollow">http://code.google.com/p/google-api-for-dotnet/</a> Google API for .NET.</p>

<p>I added DLL file reference to project and address it using <code>using Google.API.Search;</code> <code>Search.aspx.cs</code> file and it works completely fine.</p>

<pre><code>using Google.API.Search;

namespace ASP._8
{
    public partial class Search : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        public static IList&lt;IWebResult&gt; Search()
        {
            GwebSearchClient client = new GwebSearchClient(@"http://www.google.com/");
            IList&lt;IWebResult&gt; results = client.Search("Google API for .NET", 32);
            return results;
        }
    }
}
</code></pre>

<p>Trouble is when I try to access same code in <code>Search.aspx</code> file. I've got this errors</p>

<pre><code>Error 4 The name 'Google' does not exist in the current context c:\Users\Martinek\Documents\My\Learning.Dot.Net\ASP.8\ASP.8\Search.aspx 12 15 ASP.8
Error 5 The type or namespace name 'IWebResult' could not be found (are you missing a using directive or an assembly reference?) c:\Users\Martinek\Documents\My\Learning.Dot.Net\ASP.8\ASP.8\Search.aspx 13 18 ASP.8
</code></pre>

<p>Any ideas? Attaching <code>Search.aspx</code></p>

<pre><code>&lt;%  using Google.API.Search;
    foreach (IWebResult a in ASP._8.Search.Search()){ %&gt;
</code></pre>
