The name 'Classes' does not exist in the current context
<p>I have made a user control that produces a list of hyperlinks on my page. the problem is that it does not seem to want to work. this is my code for the usercontrol:</p>

<pre><code>&lt;%@ Control Language="C#" AutoEventWireup="True" CodeBehind="DepartmentsList.ascx.cs"
Inherits="BaloonShop.UserControls.DepartmentsList" %&gt;
&lt;asp:DataList ID="list" runat="server" CssClass="departmentslist" Width="200px"&gt;
&lt;HeaderStyle CssClass="departmentslisthead" /&gt;
&lt;HeaderTemplate&gt;
    Choose a Department
&lt;/HeaderTemplate&gt;
&lt;ItemTemplate&gt;
    &lt;asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='&lt;%# Classes.Link.ToDepartment(Eval("DepartmentID").ToString())%&gt;'
    Text='&lt;%# HttpUtility.HtmlEncode(Eval("Name").ToString()) %&gt;'
    ToolTip='&lt;%# HttpUtility.HtmlEncode(Eval("Description").ToString()) %&gt;'
    CssClass='&lt;%# Eval("DepartmentID").ToString() == Request.Querystring["DepartmentID"] ? "departmentselected" : "departmentunselected" %&gt;'&gt;
    &lt;/asp:HyperLink&gt;
&lt;/ItemTemplate&gt;
</code></pre>

<p></p>

<p>The structure of my files are as follows:</p>

<p><img src="http://i.stack.imgur.com/dgI4f.png" alt="File Structure"></p>

<p>Why is it saying it cant find the Classes folder?</p>

<p>If you need any-more information please ask.</p>

<p><strong>EDIT</strong></p>

<p>Code for link class:</p>

<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace BaloonShop.Classes
{
/// &lt;summary&gt;
/// Link factory class
/// &lt;/summary&gt;
public class Link
{
    // Builds an absolute URL
    private static string BuildAbsolute(string relativeUri)
    {
        // get current uri
        Uri uri = HttpContext.Current.Request.Url;
        // build absolute path
        string app = HttpContext.Current.Request.ApplicationPath;
        if (!app.EndsWith("/")) app += "/";
        relativeUri = relativeUri.TrimStart('/');
        // return the absolute path
        return HttpUtility.UrlPathEncode(String.Format("http://{0}:{1}{2}{3}", uri.Host, uri.Port, app, relativeUri));
    }

    // Generate a department URL
    public static string ToDepartment(string departmentId, string page)
    {
        if (page == "1")
            return BuildAbsolute(String.Format("Catalog.aspx?DepartmentID={0}", departmentId));
        else
            return BuildAbsolute(String.Format("Catalog.aspx?DepartmentId={0}&amp;Page={1}", departmentId, page));
    }

    // Generate a department URL for the first page
    public static string ToDepartment(string departmentId)
    {
        return ToDepartment(departmentId, "1");
    }
}
</code></pre>

<p>}</p>
