Different Types of Directives in Dot Net

12/21/2009

@Page directive:

Defines page-specific attributes used by the ASP.NET page parser and compiler. Can be included only in .aspx files and also define the page language used just like c#,VB etc.

@ Control: Defines control-specific attributes used by the ASP.NET page parser and compiler. Can be included only in. Ascx files.This Directive also the view state of the page.

@ Import: import explicitly control a namespace into a page or a user. The Import directive can not be more than one namespace attribute. Multiple namespaces, use multiple @ Import Import directives.Its help when importing files.

@ Implements: Indicates that implements the current page or user control of the specified. NET Framework interface.

@Register:

And naming space and in a custom server control syntax.We simple symbolic class name of the alias Associates can register with the Register directive is also user-controlled help.

@ Assembly: Links an assembly to the current page when writing, making all the band classes and interfaces available for use on the page.

@ OutputCache: Declarative controls the output caching policies of an ASP.NET page or a user control contained in a page

@ Reference: Declaratively indicates that another user control or page source file should be compiled and linked dynamically at the page stating this Directive.

To learn about Web Services Interview Questions visit dotnetquestion.info

Posted in: asp.net| Tags: NET page types asp different parser directive defines directives dot

Hot Posts

Latest posts

Tags

Others

Sponsors

asp.net interview questions