Sunday, June 3, 2012

ASP.net Special folders

Asp.net/visual studio has some special folders which has its own functions. We shouldnt be creating these folders for any other purpose.

  • App_Browsers: Contains custom browser definition files (.browser files) that ASP.NET uses to identify browsers and determine their capabilities. The .NET Framework includes a standard set of browser definition files in <windir>\Microsoft.NET\Framework\<ver>\CONFIG\Browsers.
  • App_Code: Contains source code for classes (.cs, .vb, and .jsl files) that the developer intends to compile as part of the application.
  • App_Global- Resources: Contains resources (.resx and .resources files) that are compiled into satellite assemblies and have a global scope. Resource files are used to externalize text and images from your application code. This helps you support multiple languages and design-time changes without recompilation of source code.
  • App_Local-Resources: Contains resources (.resx and .resources files) that are scoped to a specific page, user control, or master page in an application.
  • App_Themes: Contains subfolders, each of which defines a specific theme (or look) for your site. A theme consists of files (such as .skin, .css, and image files) that define the appearance of webpages and controls.
  • App_Web-References:Contains web reference files (.wsdl, .xsd, .disco, and .discomap files) that define references to web services.
  • Bin: Contains compiled assemblies (.dll files) for code that the application requires to execute. Assemblies in the Bin folder are automatically referenced in your application.
These folders are protected by ASP.NET. If users attempt to browse
to any of these folders (except App_Themes), they will receive an HTTP 403 Forbidden error.

No comments:

Post a Comment