ASP.NET directives are the instructional setting which is for registering a custom control and page language
ASP.NET has different types of directives such as
- Application Directives - These application directives are application-specific attributes. It provides at the top of global.aspx file
- Assembly Directives - Assembly directives link assembly to the page. These directives are found in “global.asax” pages for linking application-wide, page linking, or control linking files.
- Control Directives - Control directives are used with user controls and in (.ascx) files
- Implement Directives - Implement Directives indicates
- Webpage
- Masterpage
- User control must implement the specified
- Import Directives - This indicates the namespace of a web page. If the import is specified to global.asax file. It is applied to the entire application.
- Master Directive - It specifies a page file being master page
- Output cache Directive - Output Cache Directives control the output caching of web pages.
- Page Directives - Page Directives specify attributes specific to the page file.
- Register Directives - The register Directives is sed for registering custom ad user controls
- Reference Directives - This indicates another page or user control to be compiled and linked to the current page.