How many Directives r in ASP.NET?

Answer Posted / praveen

@ Assembly
Links an assembly to the current page or user control
declaratively.

@ Control
Defines control-specific attributes used by the ASP.NET
page parser and compiler and can be included only in .ascx
files (user controls).

@ Implements
Indicates that a page or user control implements a
specified .NET Framework interface declaratively.

@ Import
Imports a namespace into a page or user control explicitly.

@ 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.

@ MasterType
Defines the class or virtual path used to type the Master
property of a page.

@ OutputCache
Controls the output caching policies of a page or user
control declaratively.

@ Page
Defines page-specific attributes used by the ASP.NET page
parser and compiler and can be included only in .aspx files.

@ PreviousPageType
Creates a strongly typed reference to the source page from
the target of a cross-page posting.

@ Reference
Links a page, user control, or COM control to the current
page or user control declaratively.

@ 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 ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is caching? What are different ways of caching in asp.net?

932


What is microsoft windows sharepoint services?

781


How does session id work?

691


Explain weak typing and strong typing.

768


What are the different method of navigation in asp.net?

767


What do you mean by query string?

728


Explain the use of resource manager class in .net.

734


Why session management is required?

756


Define xmlreader class.

770


List the major built-in objects in asp.net?

754


How can you handle errors in Web API?

827


Explain how is a property designated as read-only?

773


What is the difference between sealed vs static class?

797


What are session and cookies?

735


Explain different types of validators in asp.net?

732