Questions tagged [app-code]

App_code is a bundled folder of Website model starting from ASP.NET 2.0.

ASP.NET 2.0 also comes bundled with a number of App_XXX folders, of which App_Code folder is an important folder. The App_Code directory allows for sharing code. Classes defined in this folder are compiled at runtime as opposed to compiled assemblies that are typically found in the bin folder.

For more info see Shared Code Folders in ASP.NET Web Sites

155 questions
33
votes
3 answers

ASP.Net - App_Data & App_Code folders?

What is the point of having App_code & App_data folders? Why doesn't my objectDataSource detect classes unless files are in App_Code? Please provide as much detail as you can, I'm new to ASP.Net
aryaxt
  • 76,198
  • 92
  • 293
  • 442
30
votes
6 answers

App_Code folder issues

So I'm having a really weird issue with my App_Code folder on a new website I'm designing. I have a basic class inside of a namespace in the App_Code folder. Everything works fine in the IDE when I setup the namespace and make an object from the…
Ethan Gunderson
  • 10,959
  • 8
  • 30
  • 29
24
votes
1 answer

Unable to call App_Code class from a code-behind

I have a class in a file that's in the "App_Code" folder. I'm able to use this in an "aspx" file but not from a code-behind file. How do I make it visible to a code-behind? NOTE: This is ASP.Net on Mono and I'm writing the classes directly, not…
Don Rhummy
  • 24,730
  • 42
  • 175
  • 330
21
votes
4 answers

Can I have a global razor @helper outside of App_Code?

The question is simple as stated in the title: Is there a way of having razor helpers outside of 'App_Code'? Example ( HtmlEx.cshtml file ): @helper Script(string fileName, UrlHelper url) {