473,396 Members | 2,121 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

App_Code folder

Hi everyone,

I've created 5 (different) asp.net 2.0 applications.
Each applicationfolder contains an App_Code folder.
Is it possible to set the App_code folder in de root of the website?
Because the purpose of the App_Code is reusable classes, it isn't very
productive to copy the class files to the App_Code folder (only 3 of the 5
applications need the class file).

thanks!

Filip
Feb 6 '06 #1
4 1981
The key word is applications. If you need to use the classes in multiple
App_Code subdirectories for multiple applications, you might want to
consider creating a class library and putting it into the GAC.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

"Filip De Backer" <fi*************@hotmail.com.(donotspam)> wrote in message
news:C2**********************************@microsof t.com...
Hi everyone,

I've created 5 (different) asp.net 2.0 applications.
Each applicationfolder contains an App_Code folder.
Is it possible to set the App_code folder in de root of the website?
Because the purpose of the App_Code is reusable classes, it isn't very
productive to copy the class files to the App_Code folder (only 3 of the 5
applications need the class file).

thanks!

Filip

Feb 6 '06 #2
Hello,

I have another case.
I have a root site with subsites.
I need a place to put all the common code used through the sites but
some
objects are common tthe two sites and there will be some
misunderstandings.

I need some kind of each site AppCode although thy are in fact under
the same site.

Can u help ?

Feb 9 '06 #3
If you have "common objects", just don't duplicate them in different code files.

You'll be able to call them from all your subsites
( as long as they aren't separate applications )
from your common App_Code folder.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
<al**********@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Hello,

I have another case.
I have a root site with subsites.
I need a place to put all the common code used through the sites but
some
objects are common tthe two sites and there will be some
misunderstandings.

I need some kind of each site AppCode although thy are in fact under
the same site.

Can u help ?

Feb 9 '06 #4
Or you can always put the common code into a class library and you can put
the library in the GAC.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:uF**************@TK2MSFTNGP12.phx.gbl...
If you have "common objects", just don't duplicate them in different code
files.

You'll be able to call them from all your subsites
( as long as they aren't separate applications )
from your common App_Code folder.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
<al**********@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Hello,

I have another case.
I have a root site with subsites.
I need a place to put all the common code used through the sites but
some
objects are common tthe two sites and there will be some
misunderstandings.

I need some kind of each site AppCode although thy are in fact under
the same site.

Can u help ?


Feb 11 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Steve Franks | last post by:
I'm using VS.NET 2005 Beta 2. I have a helper C# class I wrote that I placed in my /App_Code directory. Everything runs fine locally. However when I use the "Copy Web" function to upload the site...
5
by: Jay Douglas | last post by:
I have a set of pages that inherit from a base class in the App_Code folder. The class looks something like: public class MyBaseClass : System.Web.UI.Page In various stages of the life cycle I...
8
by: Umut Tezduyar | last post by:
I know that, in asp.net 2.0, the assembly for the web site is splitted into pieces and each time you build it, it generates a random name for assembly. My question is, if i create a custom web...
2
by: walter | last post by:
Hi, when I add a new page in my asp.net 2 project and put some controls there, everything works fine until I move the code behind into App_Code folder.--When I compile , it tells me that control...
3
by: Howard | last post by:
I have two websites that basically use the same data access layer. the code in the app_code folder are identical for these two website. Each has a different presentation layer (html stuff). It's a...
2
by: pradeep_TP | last post by:
Hello, I am trying to use APP_CODE folder for all my class files under VS 2005. After adding APP_CODE in the solution explorer, I added a new web page by right clicking project and selecting add...
1
by: matt.merchant | last post by:
All, When publishing a site with the "Used Fixed Naming and Single Page Assemblies" option checked, only one of my two App_Code folders are compiled into .DLL's. The original code (DotNetNuke...
0
by: Rotsey | last post by:
Hi, I have a web site being developed with VS2005. I am upgrading a VS2003 application by copying each page one at a time and fixing problems. Also I have copied across my class object code...
1
Frinavale
by: Frinavale | last post by:
I created a custom class that inherits from the CheckBoxList. I placed the the code for this in the App_Code folder because it's used through out my web application. I ran into a namespace...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.