Follow in Twitter & Facebook



Like in Facebook

Powered By Blogger Widgets

Free Download

FREE Tools



Tuesday, February 14, 2012

What is Page Directives in Asp.Net ?

Asp.Net page directives are some thing that is a part of every Asp.Net pages. Also check last article on Page Lifecycle Events in ASP.Net.

Page directives are instructions inserted at the top of the Asp.Net page to control the behavior of the asp.net page.

It is a type of mixed settings related to how a page should render and processed.This is like

@Page Directive <%@page attribute = "value"[attribute = "value"]%>

The @Page directive enables you to specify attributes and values for an Asp.Net page to to be
used when the page to be used when the page is parsed and compiled.

Every .aspx file should include this @page directive to execute.

The attributes are like Async, AsyncTimeOut, Auto Event Wireup, Title etc. The directives are like:
1-@Page
2-@Master
3-@Control
4-@Register
5-@Previous Page Type
6-@Referrence
7-@OutputCache
8-@Import
9-@Assembly
10-@MasterType




0 on: "What is Page Directives in Asp.Net ?"