Menu

Monday, September 27, 2010

ASP.NET Special Folders

ASP.NET defines several Special folders.

When a new Web site is created the App_Data folder is created by default.
It can contain a SQL Server 2005 Express Edition database, another database, or an XML data file that will be used in the Web site.

These folders are protected by ASP.NET
For example, if a user attempts to browse to any of there folders
(except App_Themes)
User will receive an HTTP 403 Forbidden error.























1- Bin

Bin folder contains compiled assemblies (.dll files) for code that you want to reference in your application. Assemblies in Bin folder are automatically reference in your application.

2- App_Code

App_code folder can contain source code for utility classes as well business objects (.cs, .vb and .jsl files). Classes that are present in App_Code folder are automatically complied when your web application complied.

3- App_GlobalResources

App_GlobalResources folder contains resources (.resx and .resources files) that are compiled into assemblies and have a global scope.

Resource files are used to externalize text and images from your application code. This helps you to support multiple languages and design-time changes without recompilation of your source code.

4- App_LocalResources

App_LocalResources folder contains resources (.resx and .resources files).
That are scoped to a specific page, user control, or master page in an application.

5- App_WebReferences

Contains Web references files (.wsdl, .xsd, .disco, and .discomap files) that define references to Web services.

6- App_Browsers

ASP.net reserve this folder name for storing browser definition files. Browser definition files are used to determine the client browser capabilities. Browser definition files have .browser extension.
These files are often used to help support mobile application.

7- App_Themes

Contain subfolders that each defines a specific theme or look and feel for you Web site. A theme consist of files (such as .skin, .css and image files) that defines the appearance of Web pages and controls.

8- App_Data

App_Data is used to store file that can be used as database files (.mdf and xml files).

No comments:

Post a Comment