In this article we will learn about the Directives of ASP.Net Web Pages.
Directives define the page configuration and properties that decide how the page will be processed. If the directives are not defined at the page level then the setting is inherited from web.config or machine.config file.
The MasterType directive creates a strongly typed reference to the ASP.NET master page when the master page is accessed from the Master property. It has the following attributes:
The PreviousPageType directive defines the Previous Page reference and access the properties of the child page. It has the following attributes:
The Control directive is used for user control configuration. It has the following attributes:
Hands on ASP.NET GridView