SIGN UP MEMBER LOGIN:    
ARTICLE

Special folders in ASP.NET

Posted by Puran Mehra Articles | Learn .NET September 03, 2009
In this article, I will explain about special folder provide by ASP.NET 2.0 onwards.
Reader Level:

With the release of ASP.NET 2.0, Microsoft has greatly increased the power of ASP.NET by introducing a suite of new features and functionalities.

 

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.

 

From ASP.NET 2.0 versions Microsoft provided 8 integration directories to integrate different resource in your application.

 

It is also called Data Directory.

 

Special folders that exist in ASP.NET that can be added to your Web site are as below:

 

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.

 

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.

 

Arbitrary file types can be placed in the App_Code folder to create strongly typed objects.

 

For example: placing Web service files (.wsdl and .xsd files) in the App_Code folder creates strongly typed proxies. Code present in App_Code is automatically referenced by ASP.net Application.

 

App_Data

 

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

 

App_Data folder is used by ASP.NET application for storing ASP.NET application local database. Developers can also use this folder for storing data for their ASP.NET Application.

 

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.

 

Resource files are strongly typed and can be accessed programmatically.

 

App_LocalResources

 

App_LocalResources folder contains resources (.resx and .resources files). The same files that are being contained by App_GlobalResources but files located in this folder are only available to a particular project, web page, master page or web user control.

 

App_Themes

 

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

 

App_WebReferences

 

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

 

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.

 

Special folders can be added to a Web site from the Visual Studio menu system. Typically this involves right-clicking the Web Application project and selecting Add ASP.NET folder.


integration_dri.gif 

 

Conclusion

 

I hope that this article would have helped you in understanding special folders in ASP.NET. Your feedback and constructive contributions are welcome.

Login to add your contents and source code to this article
share this article :
post comment
 

This is what i want exactly..... what type of folders does it have in an ASP.NET application

Posted by harish kumar Sep 04, 2009
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor
PREMIUM SPONSORS
  • Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
    ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications. Visit DynamicPDF here
Team Foundation Server Hosting
Become a Sponsor