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
What is viewstate parameter?
What is an assembly? Explain its parts.
What are the media types of http requests and response?
What ports must be open for DCOM over a firewall? What is the purpose of Port 135?
What is difference between web api and web services?
How do I force the dispose method to be called automatically, as clients can forget to call dispose method?
Explain what benefit does your code receive if you decorate it with attributes demanding specific security permissions?
What are the features of asp net?
What are the different session state management options available in asp.net?
Define authentication and authorization.
Which control has default post back is enabled(true)?
How can you pass multiple complex types in Web API?
Explain culture and uiculture values.
What is difference between view and partial view?
How to Separate background image and front image from original picture....