Tuesday, 15 July 2014

ASP.NET 3.5 Page Directives

ASP.NET directives are the part of every ASP.NET page By the use of the page directives the behavior of the ASP.NET page are controlled.

Let see the use of the page directives:

<%@ page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

Basically their are eleven directives . you can use these directives in your application whether the page uses the code-behind model.

WHERE YOU CAN USE THESE DIRECTIVE COMMANDS  ?

Directive commands are used for the control the behavior of the ASP.NET page.these directive are commands that the compiler uses when the page is compiled.

Directive is written in the following format :

<%@ [Directive] [Attribute=Value] %>

You can add more then one Attribute in Directive Statements.
<%@ [Directive] [Attribute=Value][Attribute=Value] %> 

Their are following directive which are used to control the behavior of the ASP.NET Page.
  1. Assembly
  2. Control
  3. Implements
  4. Imports
  5. Master
  6. MasterType
  7. OutputCache
  8. Page
  9. PreviousPageType
  10. Referenece
  11. Register

0 comments:

Post a Comment