freshers/Experienced Dotnet jobs

21/07/2011

Difference between APP_Code & APP_Data folders in ASP.Net ?

  • App_code folder contains all .cs/.vb files and they will compile automatically when ever you change anything in the files within.  code present in App_code folder is automatically referenced by asp.net web application.
  • App_data folder is used to store files that can be used as database files(.mdf/xml files) .It will be created automatically when a new website is created.Developers use this folder for storing database used by Asp.net application.

2 comments:

  1. thanks friend , k have a one doubt , see app_data will create automatically when new website was created .

    K , how to create app_code folder ?

    it should be urgent so replay me as soon as

    ReplyDelete
  2. App_Code folder. To do this, simply
    right-click the solution and choose Add ASP.NET Folder ➪ App_Code

    ReplyDelete