Directives
---------------
Directives are used to specify the settings used by the page or usercontrol compilers to process pages or usercontrol files
There are 11 types of directives
1.@Page: This is used to define page specific attributes. It is used only in .aspx files
2.@Control: This is used to define Control specific attributes. It is used only in .ascx files
3.@Master: This is used to define masterpage specific attribute. It is used only in .master files
4.@Import: This is used to import a namespace in to the current page or usercontrol
5.@Register: This is used to render usercontrols and custom server controls in to a current page or usercontrol
6.@Assembly:: This is used to link a page or usercontrol in to current page or usercontrol
8.@Implements: This is used to implement a specific .Net framework Interface in to current page or
usercontrol
9.@Outputcache: This is used to apply cache techniques in to the current page or usercontrol
10.@MasterType: This defines a class or virtual path used to type the master property of a page
11.@Previouspagetype: This is used to create a strongly typed reference to the source page from the target of a cross page posting.
Home
ASP
Asp.Net
Inter Interview Questions
Questions
Technical
view
Directives for Asp.Net Web Pages
Saturday, 8 June 2013
Directives for Asp.Net Web Pages
Published June 08, 2013
Artikel Terkait
- What is the Scope of public/private/friend/protected/protected friend? Scope of public/p
- What is a CLR? Full form of CLR is Common Language Runtime and it forms the heart of the
- What is a Assembly ? √ Assembly is unit of deployment like EXE or a DLL. √ An assembly
- 31. What are the inheritance types? a ) 1. single level inheritance 2. multi level inhe
- 21. What are the properties of constant members? a ) 1. They should use the modifier ‘
- 41. How can we achieve multiple inheritance in c#? a ) Using interfaces. 42. An interf
Subscribe to:
Post Comments (Atom)
EmoticonEmoticon