PAGE DIRECTIVES





  • Page directives are instructions, inserted at the top of an ASP.NET page, to control the behavior of the asp.net pages.
  • So it is type of mixed settings related to how a page should render and processed.
  •  example of the page directive.
    <%@ Page Language="VB" Auto Event Wire up="true" Code File="DEFAULT.aspx.vb" Inherits="Sample" Title="Sample Page Title" %>
  • There are 11 types of Pages directives in Asp.Net 2.0.
  • Some directives are very important without which we cannot develop any web applications in Asp.Net.
  • Some directives are used occasionally according to its necessity. When used, directives can be located anywhere in an .aspx or .ask file, though standard practice is to include them at the beginning of the file.
  • Each directive can contain one or more attributes (paired with values) that are specific to that directive.
  • Asp.Net web form page framework supports the following directives

1. @Page
2. @Master
3. @Control @Master Directive
4. @Register
5. @Reference
6. @Previous Page Type
7. @Output Cache
8. @Import
9. @Implements
10. @Assembly
11. @Master Type

No comments:

Post a Comment