Answer Posted / ashish tiwari
There r 11 types directives in asp.net,
1)@ Assembly
Links an assembly to the current page or user control
declaratively.
2)@ Control
Defines control-specific attributes used by the ASP.NET
page parser and compiler and can be included only in .ascx
files (user controls).
3)@ Implements
Indicates that a page or user control implements a
specified .NET Framework interface declaratively.
4)@ Import
Imports a namespace into a page or user control explicitly.
5)@ Master
Identifies a page as a master page and defines attributes
used by the ASP.NET page parser and compiler and can be
included only in .master files.
6)@ MasterType
Defines the class or virtual path used to type the Master
property of a page.
7)@ OutputCache
Controls the output caching policies of a page or user
control declaratively.
8)@ Page
Defines page-specific attributes used by the ASP.NET page
parser and compiler and can be included only in .aspx files.
9)@ PreviousPageType
Creates a strongly typed reference to the source page from
the target of a cross-page posting.
10)@ Reference
Links a page, user control, or COM control to the current
page or user control declaratively.
11)@ Register
Associates aliases with namespaces and classes, which
allow user controls and custom server controls to be
rendered when included in a requested page or user control
| Is This Answer Correct ? | 37 Yes | 4 No |
Post New Answer View All Answers
Can I read the hard disk serial # of the client computer using asp.net?
What is caching? What are different ways of caching in asp.net?
How does http session work?
What does asp in asp.net stand for?
Explain the main differences between asp and asp.net?
Is oauth for authentication or authorization?
Define static constructor?
How to you can limit Access to Web API to Specific HTTP Verb?
To display data in the combo box, prior to setting the Data Source, what kind of property on a Combo Box do you set with a column name?
What is the concept of view state in asp.net?
What are session state modes? List some of the important session state modes of asp.net.
What are the navigation ways between pages available in ASP.NET?
What is a user session?
What are the benefits of view state?
How many types of file extensions for razor views in ASP.Net MVC?