Re: Use class ... why is not available?
- From: shapper <mdmoura@xxxxxxxxx>
- Date: Thu, 8 May 2008 09:43:15 -0700 (PDT)
On May 8, 3:13 pm, "Mark Rae [MVP]" <m...@xxxxxxxxxxxxxxxxx> wrote:
"shapper" <mdmo...@xxxxxxxxx> wrote in message
news:811ff1c6-7f0c-4849-96e4-7d55f109b3f7@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I added a class but whatever I do the class is not visible to my aspx
pages or anywhere else.
I then changed the property Build Action in my class from Content to
Compile. Now it is recognized.
Why do I need to do this?
Sounds like something's up with your installation of VS.NET, as classes
(should) have their Build Action property set to Compile by default...
--
Mark Rae
ASP.NET MVPhttp://www.markrae.net
Hi,
I think the problem is where the classes are being added to.
App_Folder or somewhere else.
I created a Web Application Project.
When I add a class to App_Folder it VS 2008 makes "Build: Content". If
I add the class somewhere else it says "Build: Compile".
The problem is when I create classes in App_Folder they don't seem to
be accessible to ASPX pages as it is usual in Web Site.
When I changed them "Build: Compile" then I am able to build the
solution with no errors but when I preview an ASPX pages I get errors
everywhere.
The only solution I found was to make all classes "Build: Compile" and
rename the App_Code folder to New_App_Code.
I think I am missing something.
Any idea?
Thanks,
Miguel
.
- Follow-Ups:
- Re: Use class ... why is not available?
- From: Juan T. Llibre
- Re: Use class ... why is not available?
- References:
- Use class ... why is not available?
- From: shapper
- Re: Use class ... why is not available?
- From: Mark Rae [MVP]
- Use class ... why is not available?
- Prev by Date: RE: how does one limit postback to a small section of screen?
- Next by Date: Re: Authenticate against Active Directory
- Previous by thread: Re: Use class ... why is not available?
- Next by thread: Re: Use class ... why is not available?
- Index(es):
Relevant Pages
|