Saturday, 4 January 2014

Uses and difference of verious ASP.NET Aspecial folders.


From ASP.NET 2.0 versions Microsoft provided 8 integration directories to integrate different resource in your 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.

Note: Any another .cs/.vb class file(s) (other than page code behind file(s)) place outside App_code folder will ingored by compiler and will not compile. This behavior applicable to only ASP.NET websites and there is different behavior in web applications. These is different between a website and web application. Please keep this in mind.

App_Data

App_Data is used to store file that can be used as database files (.mdf and xml files) suas SQL Server 2005 Express Edition database, another database, or an XML data file that will be used in the Web site. When a new Web site is created the App_Data folder is created by default.

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_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_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.

6 comments:

  1. Nice DLL for Bulk Insert ,Specially for Excel Import

    ReplyDelete
    Replies
    1. I think your are talking about this post:
      http://www.codenet.in/2013/09/bulk-insert-download-here-this-dll.html

      Delete
  2. It was wondering if I could use this write-up on my other website, I will link it back to your website though.Great Thanks. Folderlock For PC Windows 7 Free of charge Download - Don't Spend Your Time Looking, Undergo All About Cellular Personal computers In the following paragraphs windows 7 password protect folders

    ReplyDelete
  3. Currently it sounds like Expression Engine is the preferred blogging platform out there right now. (From what I've read) Is that what you are using in your blog? Important source: Top Encryption Software Secrets & How To How To Encrypt A Password For Free

    ReplyDelete
  4. I am glad that I saw this post. It is informative blog for us and we need this type of blog thanks for share this blog, Keep posting such instructional blogs and I am looking forward for your future posts.
    Cyber Security Projects for Final Year

    JavaScript Training in Chennai

    Project Centers in Chennai

    JavaScript Training in Chennai

    ReplyDelete