Wednesday, August 15, 2012
Several types of directives in Dot Net
@ Page directive:
Defines page-specific attributes used by the ASP.NET page parser and compiler. Can be included only in the aspx file and defines the language for the page that is used as C #, VB etc.
@ Control: Defines control-specific attributes used by the ASP.NET page parser and compiler. Can be included in only a. Ascx files.This Directive also define the status of a page view.
@ Import: Explicitly imports a namespace into a page or user control. The import directive can not have more than one namespace attribute. To import multiple namespaces, use multiple directives.Its @ import assists in the import file.
@ Implements: Indicates that the current page or user control implements the specified interface .. NET Framework
@ Register:
Associates aliases with namespaces and class names for concise notation in syntax.We control server can register the user control with the help of the Register directive.
@ Assembly: an assembly to the current page during compilation Links, making all the assembly's classes and interfaces available for use on the page.
@ OutputCache: Declaratively controls the output caching policies of an ASP.NET page or user control contained in a page
@ Reference: declaratively indicates that another user control or page source file should be dynamically compiled and linked to the page where this directive is declared.
For more information on interview questions visit the web site dotnetquestion.info Services
Here you will find all types of interview questions interview questions such as Dot Net, SQL Server interview questions, web service interview questions, xml, ado.net, oops, asp.net, css, java script, etc. interview questions. .....
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment