Win Form and Asp.net interface
<p>I have a WinForm which connects to a OleDb. Whilst the Project (In Visual Studio 2010) was open i clicked on the New Menu and Said <code>Add New Web Site</code> now the problem is i have a class which i created before adding the website - but the <code>code-behind</code> file can't pick up that namespace or class example: (Note both projects are in the same solution)</p>

<pre><code>namespace Name
{
    //Code From The Original Project before Adding The WebSite
    class DataAccessObject
    {
        private ...;
        private ...;
    }
}
</code></pre>

<hr>

<pre><code>  public partial class Candidate : System.Web.UI.Page
  {
     ...
     ...
     ...
     DataAccessObject dao = new DataAccessObject();
  }
</code></pre>

<p>The WebSite Section of the Project Does not even Pick up the NameSpace - </p>

<p>I have Also Tried</p>

<pre><code>  public partial class Candidate : System.Web.UI.Page
  {
     ...
     ...
     ...
     Name.DataAccessObject dao = new DataAccessObject();
  }
</code></pre>

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

<p>Also The whole idea behind this is that the user can switch between winForms and Web at will, So to pass on the DataAccessObject is required.</p>

<p>NOTE THIS IS THE VERY FIRST TIME I AM ENTERING THE WORLD OF ASP(.NET)</p>

<p>Any Advice</p>
