38

Asp .net folders and web.config

Embed Size (px)

DESCRIPTION

Asp .net folders and web.config

Citation preview

Page 1: Asp .net folders and web.config
Page 2: Asp .net folders and web.config

Disclaimer: This presentation is prepared by trainees of baabtra as a part of mentoring program. This is not official document of baabtra –Mentoring PartnerBaabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt . Ltd

Page 3: Asp .net folders and web.config

Week Target Achieved

1 30 27

2 30 29

3

Typing Speed

Page 4: Asp .net folders and web.config

Jobs Applied# Company Designation Applied Date Current Status

1

2

3

4

5

Page 5: Asp .net folders and web.config

[email protected]/ nithil padinare

peediyekaltwitter.com/nithilppin.linkedin.com/in/nithil.pp9995223505

ASP .NET folders and web.config

Page 6: Asp .net folders and web.config

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 7: Asp .net folders and web.config

• 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 8: Asp .net folders and web.config

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 9: Asp .net folders and web.config

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 10: Asp .net folders and web.config

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 11: Asp .net folders and web.config

• We can add an App_Code folder, by Solution File → right click → Add ASP.NET

Folder → App_Code.

Page 12: Asp .net folders and web.config

• 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 13: Asp .net folders and web.config

• 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 14: Asp .net folders and web.config

• We have to create separate folders for C# and for VB or other classes.

Page 15: Asp .net folders and web.config

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.• Keeping .pdb files inside Bin folder helps us in debugging. • Main limitation-scope is limited to the current application.• They cannot access any code outside of current web

application.

Page 16: Asp .net folders and web.config
Page 17: Asp .net folders and web.config

App_Data Folder• Used as a data storage for the web application.• Can store files such as .mdf, .mdb, and XML. • Manages all of your application's data.• Any file you place in it won't be downloadable.

Page 18: Asp .net folders and web.config

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.– other for skin files.

Page 19: Asp .net folders and web.config
Page 20: Asp .net folders and web.config

• We could select the theme from aspx page.

Page 21: Asp .net folders and web.config

App_Browser Folder

• App_Browser folder contains browser information files (.browser files).

• used to identify the browser and browser capabilities.

Page 22: Asp .net folders and web.config

App_WebReference Folder

• Contain references to any web services.• Contains reference contract files (.wsdl files),

schemas (.xsd files), and discovery document files (.disco and .discomap files) that let you create a Web reference

Page 23: Asp .net folders and web.config

Resources Folders

• The main purpose of resource files is localization of the web application.

• There are two type of resources:– Local resources– Global resources

Page 24: Asp .net folders and web.config

App_LocalResource Folder

• Contains resources (.resx and .resources files) that are associated with a specific page, user control, or master page in an application.

Page 25: Asp .net folders and web.config

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 26: Asp .net folders and web.config

web.config

• ASP.NET Web.config allows you to define or revise the configuration settings.

• Web.config files are stored in XML format.• Can have any number of Web.config files for an

application.• 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 27: Asp .net folders and web.config

• 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 28: Asp .net folders and web.config

Hierarchy of the Web.config file.

Page 29: Asp .net folders and web.config

system.web•Compilation Settings

•Page Settings

Page 30: Asp .net folders and web.config

Custom Error Settings

Example error status code:

•400 Bad Request•401 Unauthorized•404 Not Found•408 Request Timeout

Location Settings

Page 31: Asp .net folders and web.config

HttpHandler Settings

HttpModule Settings

Authentication Settings

Page 32: Asp .net folders and web.config

Authorization Settings

Membership Provider Settings

Page 33: Asp .net folders and web.config

Role Provider Settings

Page 34: Asp .net folders and web.config

connectionStrings

• allows you to store multiple connection strings that are used in the application.

Page 35: Asp .net folders and web.config

ConfigSections

• Used to create your own custom configuration section that can be used with the web.configfile.

Page 36: Asp .net folders and web.config
Page 37: Asp .net folders and web.config

If this presentation helped you, please visit our page facebook.com/baabtra and like it.

Thanks in advance.

www.baabtra.com | www.massbaab.com |www.baabte.com

Page 38: Asp .net folders and web.config

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]