<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>TechieDrill &#187; ASP .NET</title>
	<atom:link href="http://techiedrill.com/category/web-developement/asp-net/feed/" rel="self" type="application/rss+xml" />
	<link>http://techiedrill.com</link>
	<description>Your World Of Technical Tutorials</description>
	<lastBuildDate>Tue, 05 Jan 2010 16:50:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>@ Page Directive &#8211; ASP .NET</title>
		<link>http://techiedrill.com/2009/11/page-directive-asp-net/</link>
		<comments>http://techiedrill.com/2009/11/page-directive-asp-net/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 16:42:52 +0000</pubDate>
		<dc:creator>bprashanth</dc:creator>
				<category><![CDATA[ASP .NET]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[asp]]></category>
		<category><![CDATA[codefile]]></category>
		<category><![CDATA[compilationmode]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[directive]]></category>
		<category><![CDATA[enableviewstate]]></category>
		<category><![CDATA[language]]></category>
		<category><![CDATA[page]]></category>
		<category><![CDATA[title]]></category>

		<guid isPermaLink="false">http://techiedrill.com/?p=138</guid>
		<description><![CDATA[@ Page Directive ASP .NET
Page Directives:
A Page directive is a set of instructions given to ASP.NET compiler/parser. It is used to define the behavior of Web Forms. The page directive is always specified at the top of the page.
@Page Directive
The @Page directive is used to declare attributes that are specific to a .aspx page. It [...]]]></description>
			<content:encoded><![CDATA[<h2>@ Page Directive ASP .NET</h2>
<h4>Page Directives:</h4>
<p>A Page directive is a set of instructions given to ASP.NET compiler/parser. It is used to define the behavior of Web Forms. The page directive is always specified at the top of the page.</p>
<h4>@Page Directive</h4>
<p>The @Page directive is used to declare attributes that are specific to a .aspx page. It is used by the ASP.NET page compiler.</p>
<p>The General Syntax of a page directive is:<br />
&lt;%@ Page attribute=&#8221;value&#8221; [attribute="value"...] %&gt;</p>
<h4>Attributes of @Page Directive:</h4>
<p>Specified below are some of the commonly-used attributes of an @Page Directive:</p>
<p><strong>Language</strong>:<br />
Example: <em>&lt;%@ Page Language=&#8221;C#&#8221; %&gt;</em><br />
The language (C# or VB) used to complie the code-behind file or current page is specified here. This is the language in which the code in the page or the code-behind file is written (inline and block).<br />
Value can be &#8220;Visual Basic&#8221;, &#8220;C#&#8221;, or any other .NET supported language. A page can be written only in one language.</p>
<p><strong>CodeFile:</strong><br />
Example: <em>&lt;%@ Page CodeFile=&#8221;Default.aspx.cs&#8221; %&gt;</em><br />
The name of the code-behind file, with which the current file is associated, is specified here.</p>
<p><strong>CompilationMode:</strong><br />
Example: <em>&lt;%@ Page CompilationMode=&#8221;Auto&#8221; %&gt;</em><br />
CompilationMode property is set to specify whether an ASP.NET page is compiled or not. The possible values are &#8220;Always&#8221;, &#8220;Auto&#8221; and &#8220;Never&#8221;. The default value is &#8220;Always&#8221;.<br />
The value &#8220;Auto&#8221; is used to improve performance. This will prevent ASP.NET from compiling the page dynamically, if possible. The disadvantage of Auto property is that if the page that is excluded from compilation contains that code that must be compiled, an error results when the page is visited.</p>
<p><strong>Title:</strong><br />
Example: <em>&lt;%@ Page Title=&#8221;My First ASP.NET Page&#8221; %&gt;</em><br />
This attribute sets the &lt;title&gt; of the page. The rendered page&#8217;s &lt;title&gt; tag will contain the value given here.<br />
The above example results in ==&gt; &lt;title&gt;My First ASP.NET Page&lt;/title&gt;</p>
<p><strong>Debug</strong>:<br />
Example: <em>&lt;%@ Page Debug=&#8221;True&#8221; %&gt;</em><br />
Indicates whether the compiler should use debug symbols on page or not. Default mode is &#8220;False&#8221;. It has to be set to &#8220;True&#8221; for development purposes.<br />
This setting has adverse effect on site performance, so once the development is over it is set to &#8220;False&#8221;.</p>
<p><strong>EnableViewState</strong>:<br />
Example: <em>&lt;%@ Page EnableViewState=&#8221;True&#8221; %&gt;</em><br />
A boolean value which specifies if view state is maintained across page requests. The default value is true.<br />
It is set to &#8220;True&#8221; for the view state to be maintained.</p>
<p>There are several more @Page directive attributes. For more, the reader is recommended to visit the MSDN web site.</p>
]]></content:encoded>
			<wfw:commentRss>http://techiedrill.com/2009/11/page-directive-asp-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
