asp folders and web configurations
TRANSCRIPT
![Page 1: Asp folders and web configurations](https://reader030.vdocuments.us/reader030/viewer/2022020101/55a242dd1a28abfc448b4669/html5/thumbnails/1.jpg)
![Page 2: Asp folders and web configurations](https://reader030.vdocuments.us/reader030/viewer/2022020101/55a242dd1a28abfc448b4669/html5/thumbnails/2.jpg)
Nikhil Dev S.B
www.facebook.com/nikhildevsb
Twitter Profile
www.linkedin.com/nikhildevsb
Typing speed : 25wpm.
ASP .NET folders and web.config
![Page 3: Asp folders and web configurations](https://reader030.vdocuments.us/reader030/viewer/2022020101/55a242dd1a28abfc448b4669/html5/thumbnails/3.jpg)
Disclaimer: This presentation is prepared by trainees ofbaabtra.com as a part of mentoring program. This is notofficial document of baabtra.com – Mentoring Partner
![Page 4: Asp folders and web configurations](https://reader030.vdocuments.us/reader030/viewer/2022020101/55a242dd1a28abfc448b4669/html5/thumbnails/4.jpg)
Overview - ASP.NET Folders
• ASP.NET 2.0 uses a file-based approach.
• we can add files and folders using the Add
Items option.
![Page 5: Asp folders and web configurations](https://reader030.vdocuments.us/reader030/viewer/2022020101/55a242dd1a28abfc448b4669/html5/thumbnails/5.jpg)
• Can add as many files and folders as we like.
• Dynamically compile them when required.
i.e, uses a predefined folder structure
containing the files, to compile them
dynamically.
![Page 6: Asp folders and web configurations](https://reader030.vdocuments.us/reader030/viewer/2022020101/55a242dd1a28abfc448b4669/html5/thumbnails/6.jpg)
Advantages of ASP.NET Application Folders
• Maintain resources in an organized manner.
• All files and folders are accessible through the
application.
• We can add as many files as required
• Files are compiled dynamically when required
![Page 7: Asp folders and web configurations](https://reader030.vdocuments.us/reader030/viewer/2022020101/55a242dd1a28abfc448b4669/html5/thumbnails/7.jpg)
Different Types of Application Folder
• App_Code Folders
• Bin Folders
• App_Data Folders
• App_Theme Folders
• App_Browser Folders
• App_WebReference Folders
• Resources Folders
– App_LocalResource Folders
– App_GlobalResource Folders
![Page 8: Asp folders and web configurations](https://reader030.vdocuments.us/reader030/viewer/2022020101/55a242dd1a28abfc448b4669/html5/thumbnails/8.jpg)
App_Code Folder
• App_Code Folder stores classes, typed data
sets, etc.
• All items stored in App_Code are
automatically accessible throughout the
application.
• If we store any class files (like .cs or .vb) it
compiles them automatically.
![Page 9: Asp folders and web configurations](https://reader030.vdocuments.us/reader030/viewer/2022020101/55a242dd1a28abfc448b4669/html5/thumbnails/9.jpg)
• We can add an App_Code folder, by
Solution File → right click → Add ASP.NET
Folder → App_Code.
![Page 10: Asp folders and web configurations](https://reader030.vdocuments.us/reader030/viewer/2022020101/55a242dd1a28abfc448b4669/html5/thumbnails/10.jpg)
• ASP.NET allows you to add
an App_Code folder only once.
• Can add new items like classes, text and xml
files into the App_Code folder.
![Page 11: Asp folders and web configurations](https://reader030.vdocuments.us/reader030/viewer/2022020101/55a242dd1a28abfc448b4669/html5/thumbnails/11.jpg)
• Items entered in App_Code folder is accessible
throughout the application.
• If we store different classes like .cs or .vb in
the same folder.
it will give following compilation error:
![Page 12: Asp folders and web configurations](https://reader030.vdocuments.us/reader030/viewer/2022020101/55a242dd1a28abfc448b4669/html5/thumbnails/12.jpg)
• We have to create separate folders for C# and
for VB or other classes.
![Page 13: Asp folders and web configurations](https://reader030.vdocuments.us/reader030/viewer/2022020101/55a242dd1a28abfc448b4669/html5/thumbnails/13.jpg)
Bin Folder• Contains compiled assemblies (.dll files) for
controls, components, or other code
• Can access those as a reference from anywhere of our web application.
• ASP.NET recognizes the presence of DLLs inside the Bin Folder.
• Main limitation-scope is limited to the current application.
• They cannot access any code outside of current web application.
![Page 14: Asp folders and web configurations](https://reader030.vdocuments.us/reader030/viewer/2022020101/55a242dd1a28abfc448b4669/html5/thumbnails/14.jpg)
![Page 15: Asp folders and web configurations](https://reader030.vdocuments.us/reader030/viewer/2022020101/55a242dd1a28abfc448b4669/html5/thumbnails/15.jpg)
App_Data Folder• Used as a data storage for the web application.
• Can store files such as .mdf(master database file-sql
server), .mdb(MS Access db format), and XML.
• Manages all of your application's data.
• Any file you place in it won't be downloadable.
![Page 16: Asp folders and web configurations](https://reader030.vdocuments.us/reader030/viewer/2022020101/55a242dd1a28abfc448b4669/html5/thumbnails/16.jpg)
App_Theme Folder
• To give your web sites a consistent look.
• When we add an App_Theme folder, a
subfolder with name Theme1 will be
automatically created.
• An App_Theme folder can contain two
subfolders;
– one for CSS files. - Cascading style sheets
– other for skin files. – property setting for controls
like BackColor,ForColor
![Page 17: Asp folders and web configurations](https://reader030.vdocuments.us/reader030/viewer/2022020101/55a242dd1a28abfc448b4669/html5/thumbnails/17.jpg)
![Page 18: Asp folders and web configurations](https://reader030.vdocuments.us/reader030/viewer/2022020101/55a242dd1a28abfc448b4669/html5/thumbnails/18.jpg)
App_Browser Folder
• App_Browser folder contains browser
information files (.browser files).
• used to identify the browser and browser
capabilities.
![Page 19: Asp folders and web configurations](https://reader030.vdocuments.us/reader030/viewer/2022020101/55a242dd1a28abfc448b4669/html5/thumbnails/19.jpg)
App_WebReference Folder
• Contain references to any web services.
• If we added any web services with our web
applications it go automatically into
App_Webreference
• In windows application, if we add DLL file it
would go under App_Webreference.
![Page 20: Asp folders and web configurations](https://reader030.vdocuments.us/reader030/viewer/2022020101/55a242dd1a28abfc448b4669/html5/thumbnails/20.jpg)
Resources Folders
• The main purpose of resource files
is localization of the web application.
• Supports multilingual functionality.(different
language supportive for a multinational
company website).
• There are two type of resources:
– Local resources
– Global resources
![Page 21: Asp folders and web configurations](https://reader030.vdocuments.us/reader030/viewer/2022020101/55a242dd1a28abfc448b4669/html5/thumbnails/21.jpg)
App_LocalResource Folder
• Multilingual functionality on webpage.
• Contains resources (.resx and .resources files)
that are associated with a specific page, user
control, or master page in an application.
![Page 22: Asp folders and web configurations](https://reader030.vdocuments.us/reader030/viewer/2022020101/55a242dd1a28abfc448b4669/html5/thumbnails/22.jpg)
App_GlobalResource Folder
• can be read from any page or code that is
anywhere in the web site.
• We should use theApp_GlobalResource folder
when we need a single resource for multiple
web pages.
![Page 23: Asp folders and web configurations](https://reader030.vdocuments.us/reader030/viewer/2022020101/55a242dd1a28abfc448b4669/html5/thumbnails/23.jpg)
web.config
• ASP.NET Web.config allows you to define or revise the configuration settings.
• Web.config files are stored in XML format which loads first.
• Connection string to database , Security , compilation setting would write here.
• All the Web.config files inherit the root Web.config file available at the following location.
i.e, systemroot\Microsoft.NET\Framework\versionNumber\CONFIG\Web.config location
![Page 24: Asp folders and web configurations](https://reader030.vdocuments.us/reader030/viewer/2022020101/55a242dd1a28abfc448b4669/html5/thumbnails/24.jpg)
• IIS is configured in such a way that it prevents
the Web.config file access from the browser.
• The changes in Web.config don’t require the
reboot of the web server.
![Page 25: Asp folders and web configurations](https://reader030.vdocuments.us/reader030/viewer/2022020101/55a242dd1a28abfc448b4669/html5/thumbnails/25.jpg)
Hierarchy of the Web.config file.
![Page 26: Asp folders and web configurations](https://reader030.vdocuments.us/reader030/viewer/2022020101/55a242dd1a28abfc448b4669/html5/thumbnails/26.jpg)
Thank you...
![Page 27: Asp folders and web configurations](https://reader030.vdocuments.us/reader030/viewer/2022020101/55a242dd1a28abfc448b4669/html5/thumbnails/27.jpg)
connectionStrings
• allows you to store multiple connection strings that are used in the application.
![Page 28: Asp folders and web configurations](https://reader030.vdocuments.us/reader030/viewer/2022020101/55a242dd1a28abfc448b4669/html5/thumbnails/28.jpg)
Contact Us
Emarald Mall (Big Bazar Building)Mavoor Road, Kozhikode,Kerala, India.Ph: + 91 – 495 40 25 550
NC Complex, Near Bus StandMukkam, Kozhikode,Kerala, India.Ph: + 91 – 495 40 25 550
Start up VillageEranakulam,Kerala, India.
Email: [email protected]