Classes outside App_Code folder in website application (VS2008)



Hi all,

This is probably a silly newbie question, but I can't find the answer and am
on a very tight deadline.

I am working on a very small part of a huge website that is using the
website model. I'd like to put some functionality in a separate class, but I
need to place the class file in the same folder as the page that uses it, NOT
in the App_Code folder. (The main reason for this is that any change made
under App_Code causes most of the site to recompile, which takes ~ 4 minutes
each time. It's *that* big. For the same reason, converting to a Web
Application is not an option.)

How can I place the class files in the same folder as the pages that use it,
and reference the class from the page? I keep getting compile errors "The
type or namespace name 'xyz' could not be found (are you missing a using
directive or an assembly reference?)".

It will find the class if I place it in the codefile for the page, but I
would like to keep it in a separate file so I can reference it from several
pages.

If you would, please spell out as much detail as possible, even if it seems
obvious.
.



Relevant Pages

  • Re: Need help understanding ASP.NET configuration error message
    ... I'm also using a reference to Microsoft.ApplicationBlocks.Data. ... > The reason for that is because of the way we load assemblies into the ... > folder specifically for that reason. ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • RE: Back-up error 5634 - Need help eliminating directory
    ... After you excluded badmail folder in Trend, can your backup your server ... In the Badmail directory box, change the name of the BadMail folder to ... |> | Reason: Access is denied. ...
    (microsoft.public.windows.server.sbs)
  • Re: Referencing your other assemblies in projects
    ... Yeah, I know it seems weird, but I still put winforms applications under the ... I set the working folder ... My company sets up a "Release" folder for commonly used assemblies. ... the dietcoke manager can relatively reference ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Auto Referencing in Word Documnets
    ... *much* faster than browsing a folder structure. ... are still a large number of organizations using the hard-copy based system ... behind the coding may help me to think differently in an entirely ... when the reference number identified the physical file. ...
    (microsoft.public.word.docmanagement)
  • Re: VBA References Problem
    ... a compile error was received. ... When i reviewed the error message it indicated that a reference was missing. ... Mapping" and placed it within the program files folder on the other users PC. ... version of the control; the most understandable description of this is ...
    (microsoft.public.word.docmanagement)