What is the significance of the new ASP.Net directories
-
Hi, I would like know why ASP.Net has introduced the new directories and what is their significance. Are they meant for just logical seperation and to help in easily organising stuff or any other strong reason. And if we consider app_code folder which is meant for code files like .cs, .vb etc. What if I place any codefile outside of this folder.Because when I placed a .cs file in app_code folder and tried to compile it it was not compiling. Can someone let me know what these folders are really for... Thanks:
Rakesh
-
Hi, I would like know why ASP.Net has introduced the new directories and what is their significance. Are they meant for just logical seperation and to help in easily organising stuff or any other strong reason. And if we consider app_code folder which is meant for code files like .cs, .vb etc. What if I place any codefile outside of this folder.Because when I placed a .cs file in app_code folder and tried to compile it it was not compiling. Can someone let me know what these folders are really for... Thanks:
Rakesh
rockyl wrote:
Are they meant for just logical seperation
It's ASP.NET 2.0 or later architecture.
rockyl wrote:
And if we consider app_code folder which is meant for code files like .cs, .vb etc. What if I place any codefile outside of this folder
If you want to share some classes in whole application, you can keep them inside app_code. Classes inside app_code will be compiled automatically at runtime. ASP.NET treats whole app_code as single assembly.
rockyl wrote:
I placed a .cs file in app_code folder and tried to compile it it was not compiling.
What was the error you are getting ?