summaryrefslogtreecommitdiff
path: root/demos/quickstart
diff options
context:
space:
mode:
authorctrlaltca@gmail.com <>2011-06-01 20:01:35 +0000
committerctrlaltca@gmail.com <>2011-06-01 20:01:35 +0000
commit8ce0a1d0f2b67eaf998aca58913cf87652b4b0d5 (patch)
treed1b0cceb60c6262727ea78efe2bfe65ce0e5a49e /demos/quickstart
parentad30a2e5e2bbe11908a78e7731ed5d2d8c55c9b9 (diff)
added documentation for THead class
Diffstat (limited to 'demos/quickstart')
-rw-r--r--demos/quickstart/protected/pages/Controls/Head.page34
-rw-r--r--demos/quickstart/protected/pages/Controls/Standard.page2
2 files changed, 34 insertions, 2 deletions
diff --git a/demos/quickstart/protected/pages/Controls/Head.page b/demos/quickstart/protected/pages/Controls/Head.page
index 7e4a19ec..594bb069 100644
--- a/demos/quickstart/protected/pages/Controls/Head.page
+++ b/demos/quickstart/protected/pages/Controls/Head.page
@@ -4,7 +4,39 @@
<com:DocLink ClassPath="System.Web.UI.WebControls.THead" />
<p id="310261" class="block-content">
-TBD
+<tt>THead</tt> displays a head element on a page. It displays the content
+enclosed in its body and the page title set by the <tt>Title</tt> property.
+</p>
+
+<p class="block-content">
+In addition, stylesheets and JavaScripts registered via
+<ul>
+ <li><tt>TClientScriptManager::registerStyleSheet</tt>,</li>
+ <li><tt>TClientScriptManager::registerStyleSheetFile</tt>,</li>
+ <li><tt>TClientScriptManager::registerHeadJavaScript</tt> and</li>
+ <li><tt>TClientScriptManager::registerHeadJavaScriptFile</tt></li>
+</ul>
+will also be displayed in the head.</p>
+
+<p class="block-content">
+THead also manages and displays meta tags through its <tt>MetaTags</tt>
+property. You can add a meta object to the collection in code dynamically,
+or add it in template using the following syntax
+</p>
+
+<com:TTextHighlighter Language="text" CssClass="source block-content">
+&lt;com:THead&gt;
+ &lt;com:TMetaTag HttpEquiv="Pragma" Content="no-cache" /&gt;
+ &lt;com:TMetaTag Name="keywords" Content="Prado" /&gt;
+&lt;/com:THead&gt;
+</com:TTextHighlighter>
+
+<p class="block-content">
+Note, <tt>TPage</tt> has a property <tt>Head</tt> that refers to
+the <tt>THead</tt> control currently on the page. A page can have at most one <tt>THead</tt>
+control. Although not required, it is recommended to place a <tt>THead</tt> on your page.
+Without a <tt>THead</tt> on the page, stylesheets and javascripts in the current page
+theme will not be rendered.
</p>
<div class="last-modified">$Id$</div></com:TContent> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/Controls/Standard.page b/demos/quickstart/protected/pages/Controls/Standard.page
index 38a541ca..9fde5a29 100644
--- a/demos/quickstart/protected/pages/Controls/Standard.page
+++ b/demos/quickstart/protected/pages/Controls/Standard.page
@@ -43,7 +43,7 @@
<a href="?page=Controls.FileUpload">TFileUpload</a> represents a file upload field. It allows users to upload a file to server.
</li>
- <li>*
+ <li>
<a href="?page=Controls.Head">THead</a> represents the &lt;head&gt; element on an HTML Web page. It is required by a PRADO page should it use themes.
</li>