.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

meaning of Directives

Posted By: PankajGupta     Posted Date: July 16, 2009    Points:2   Category :C#
What is the meaning of these Directives?

using System;
using System.Collections.Generic;
using System.Text;


Responses
Author: Faizal             
Posted Date: July 17, 2009     Points: 5   

HI,
Page directives are instructions, inserted at the top of an ASP.NET page, to control the behavior of the asp.net pages. So it is type of mixed settings related to how a page should render and processed.

For eg we have page directives in asp.Net Web Page and we set some property of the page like this


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Sample.aspx.cs" Inherits="Sample" Title="Sample Page Title" %>


What you have given in the example is Namespace.

And the namespace is a keyword is used to declare a scope. This namespace scope lets you organize code and gives you a way to create globally unique types.

Author: PankajGupta             
Posted Date: July 17, 2009     Points: 5   

How many such directives are there in dot net ? Any Idea or website where I can about these in more deep. Thank You.

Indian Search Engine Optimization Forum
http://forum.wedost.com
Author: Faizal             
Posted Date: July 17, 2009     Points: 5   

Hi Pankaj,
There are total 11 Page Directives are available in asp.net and these are

Asp.Net web form page framework supports the following directives.

1. @Page
2. @Master
3. @Reference
4. @Register
5. @Implements
6. @Import
7. @MasterType
8. @PreviousPageType
9. @Control
10. @Assembly
11. @OutputCache



Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend