ASP.NET directives are the instructions to specify what needs to include and what needs to be executed.
These settings describe how web forms or user controls are processed by the .NET framework.
<%@ directive_name attribute=value [attribute=value] %>
The Application Directive
It describes the application specific attributes.
Attributes |
Description |
Inherits |
The class to be inherited |
Description |
The description of the contents |
Language |
The language to be used in the programming |
<%@ Application Language="C#" %>
The Assembly Directive
It links an assembly to the page whenever the assembly is included.
<%@ Assembly Name ="myassembly" %>
Attributes |
Description |
Name |
The assembly to be linked |
Src |
The path of the file to be accessed |
The Control Directive
The control directive is used with the user controls.
It is included by the framework to use with the user controls.
<%@ Control Language="C#" EnableViewState="false" %>
Attributes |
Description |
AutoEventWireup |
This will enable and disable events |
ClassName |
The name for the control |
Debug |
To rectify errors |
Description |
The text description of the control page, ignored by compiler. |
EnableViewState |
The access values through the application |
Explicit |
To use anything explicitly |
Inherits |
The class to be used |
Language |
The language to be used |
Src |
The filename for the logic file |
Strict |
To open anything in strict mode. |
0 Comment(s)