Home   Help Login Register  
Welcome, Guest. Please login or register.

Login with username, password and session length

Search
Free Website WooThemes - Quality Themes, Great Support
Pages: [1]   Go Down
Print
Topic: Different Types of Directives in Dot Net  (Read 2921 times)
« on: August 29, 2007, 01:44:59 PM »
Tech Offline
Newbie

View Profile
*

iTrader: 1
Posts: 183



@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

Share this topic on AskShare this topic on BlinkbitsShare this topic on BlinklistShare this topic on BloglinesShare this topic on BmarksShare this topic on Del.icio.usShare this topic on DiggShare this topic on DzoneShare this topic on FacebookShare this topic on Feed Me LinksShare this topic on FurlShare this topic on GoogleShare this topic on LiveShare this topic on MagnoliaShare this topic on MySpaceShare this topic on NetvouzShare this topic on NewsvineShare this topic on OneviewShare this topic on RedditShare this topic on RojoShare this topic on ScuttleShare this topic on ShadowsShare this topic on SlashdotShare this topic on SpurlShare this topic on SquidooShare this topic on StumbleUponShare this topic on TechnoratiShare this topic on TwitterShare this topic on TipdShare this topic on YahooShare this topic on Google buzz
« Last Edit: December 31, 1969, 05:00:00 PM by Tech » Logged

« Reply #1 on: June 05, 2009, 05:55:19 AM »
haileyjonathan Offline
Newbie

View Profile
*

iTrader: 0
Posts: 6



Nice posting. I got some tips from your posting..
Thanks for your sharing...
Logged
« Reply #2 on: September 14, 2009, 10:23:00 AM »
Michealjack Offline
Newbie

View Profile
*

iTrader: 0
Posts: 12



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 24, 2009, 12:30:46 PM by Kailash » Logged
« Reply #3 on: August 16, 2010, 10:11:00 PM »
burton71stephens Offline
Newbie

View Profile
*

iTrader: 0
Posts: 1



Hii......
nice post i can get all of my related queries solved here......
will come up with some of my queries.....
Logged

« Reply #4 on: September 18, 2010, 01:41:01 AM »
brucecraig88 Offline
Newbie

View Profile
*

iTrader: 0
Posts: 12



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

« Reply #5 on: October 15, 2010, 01:40:34 AM »
ramsankeiio Offline
Newbie

View Profile
*

iTrader: 0
Posts: 15



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

« Reply #6 on: November 18, 2010, 04:07:03 PM »
disolmodo78 Offline
Newbie

View Profile
*

iTrader: 0
Posts: 15



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

Pages: [1]   Go Up
Print
Jump to:  

Untitled Document
(c) 2012 HELM, WHM, cPanel, ASP, .Net development, PHP, MySQL, MSSQL Server, SEO support forum
Powered by SMF 1.1.16 | SMF © 2011, Simple Machines | Forum style designed by PixelSlot
Google - Sitemap - XML Sitemap