Web Hosting Forum - A Web Hosting community for Webmasters


Divi WordPress Theme

Author Topic: Different Types of Directives in Dot Net  (Read 9764 times)

0 Members and 1 Guest are viewing this topic.

Offline Tech

  • Junior Guru
  • **
  • Posts: 183
  • iTrader: +2/-0
    • View Profile
Different Types of Directives in Dot Net
« on: August 30, 2007, 02:14:59 AM »
@Page directive:

Defines page-specific attributes used by the ASP.NET page parser and compiler. Can be included only in .aspx files and also define the page language used just like c#,VB etc. <%@ Page AspCompat="TRUE" language="C#" %>

@Control: Defines control-specific attributes used by the ASP.NET page parser and compiler. Can be included only in .ascx files.This directive also define the view state of page. <%@ Control Language="VB" EnableViewState="false" %>

@Import: Explicitly imports a namespace into a page or user control. The Import directive cannot have more than one namespace attribute. To import multiple namespaces, use multiple @Import directives.Its helps in importing of files. <% @ Import Namespace="System.web" %>

@Implements: Indicates that the current page or user control implements the specified .NET framework interface .<%@ Implements Interface="System.Web.UI.IPostBackEventHandler" %>

@Register:

Associates aliases with namespaces and class names for concise notation in custom server control syntax.We can register the user control also with the help of Register directive. <%@ Register Tagprefix="Acme" Tagname="AdRotator" Src="AdRotator.ascx" %>

@Assembly: Links an assembly to the current page during compilation, making all the assembly's classes and interfaces available for use on the page. <%@ Assembly Name="MyAssembly" %><%@ Assembly Src="MySource.vb" %>

@OutputCache: Declaratively controls the output caching policies of an ASP.NET page or a user control contained in a page <%@ OutputCache Duration="#ofseconds" Location="Any | Client | Downstream | Server | None" Shared="True | False" VaryByControl="controlname" VaryByCustom="browser | customstring" VaryByHeader="headers" VaryByParam="parametername" %>

@Reference: Declaratively indicates that another user control or page source file should be dynamically compiled and linked against the page in which this directive is declared.

To learn about Web Services Interview Questions visit dotnetquestion.info

Here you will also find all type of interview questions like dot net interview questions, sql server interview questions, web services interview questions, xml, ado.net, oops, asp.net, css, java script interview questions etc.

Article Source: http://EzineArticles.com/?expert=Adam_Sturo
« Last Edit: January 01, 1970, 05:30:00 AM by Tech »

VPS Hosting - AccuWebHosting

Offline haileyjonathan

  • Newbie
  • *
  • Posts: 6
  • iTrader: +0/-0
    • View Profile
Re: Different Types of Directives in Dot Net
« Reply #1 on: June 05, 2009, 06:25:19 PM »
Nice posting. I got some tips from your posting..
Thanks for your sharing...

Offline Michealjack

  • New Member
  • *
  • Posts: 12
  • iTrader: +0/-0
    • View Profile
Re: Different Types of Directives in Dot Net
« Reply #2 on: September 14, 2009, 10:53:00 PM »
XML serves the primary syntax that can be utilized to share suitable and relevant information between diverse kinds of computers, various applications, and different organizations. The data of XML is stored in a very simple format of plain text.
« Last Edit: September 25, 2009, 01:00:46 AM by Kailash »

burton71stephens

  • Guest
Re: Different Types of Directives in Dot Net
« Reply #3 on: August 17, 2010, 10:41:00 AM »
Hii......
nice post i can get all of my related queries solved here......
will come up with some of my queries.....

Offline brucecraig88

  • New Member
  • *
  • Posts: 12
  • iTrader: +0/-0
    • View Profile
Re: Different Types of Directives in Dot Net
« Reply #4 on: September 18, 2010, 02:11:01 PM »
The outcome of XML can be utilized to share suitable and suitable in order. The data of XML is store in a very easy set-up of plain text.

Offline ramsankeiio

  • New Member
  • *
  • Posts: 15
  • iTrader: +0/-0
    • View Profile
Re: Different Types of Directives in Dot Net
« Reply #5 on: October 15, 2010, 02:10:34 PM »
Data stored in XML is stored in plain Notepad format. It is very useful for sharing relevant data between different types of commuters or programs.

Offline disolmodo78

  • New Member
  • *
  • Posts: 15
  • iTrader: +0/-0
    • View Profile
Re: Different Types of Directives in Dot Net
« Reply #6 on: November 19, 2010, 04:37:03 AM »
Page directive, control, import directives, implements, register, assembly, reference etc are the different types of directives in Dot Net. All are very essential for web development.

Offline annahussy

  • Junior Guru
  • **
  • Posts: 89
  • iTrader: +0/-0
    • View Profile
Re: Different Types of Directives in Dot Net
« Reply #7 on: January 01, 2013, 01:28:31 PM »
This is such a nice  post about directives in .NET. There are total 11 directives are available like assembly,control,implements,import,master,master type,output cache,page,previous page type,reference, register etc. 

Offline ephraimdov

  • Newbie
  • *
  • Posts: 1
  • iTrader: +0/-0
    • View Profile
Re: Different Types of Directives in Dot Net
« Reply #8 on: September 02, 2015, 01:33:19 PM »
More about......Page Directives

Dov

Divi WordPress Theme
Tags:
 

Related Topics

  Subject / Started by Replies Last post
1 Replies
5499 Views
Last post June 25, 2009, 10:39:34 AM
by Kailash
2 Replies
1080 Views
Last post April 01, 2013, 02:26:16 PM
by Steve Smith
6 Replies
1285 Views
Last post September 26, 2017, 05:19:10 PM
by techsophia
1 Replies
980 Views
Last post April 01, 2013, 02:17:04 PM
by Steve Smith
2 Replies
1035 Views
Last post April 08, 2013, 12:04:21 PM
by Steve Smith