This component is used to provide access to the <head> HTML element through prado code. You can access it via the
- property.
-
- The THead component provides functionality that is also available through
- the TPage component (it will remain in the TPage component for cases where a THead
- component is not included on the page), including:
-
- - <b>registerScriptFile</b>
- - <b>registerStyleFile</b>
-
- Additionally, there are additional methods
-
- - <b>registerScriptBlock</b>
- <br/>Register script to be output between <script> tags
- - <b>registerStyleBlock</b>
- <br/>Register script to be output between <style> tags
- - <b>registerMetaInfo</b>
- <br/>Register information to be output in a <meta> tag
-
- Namespace: System.Web.UI.WebControls
-
- Properties
- - <b>Title</b>, string, kept in viewstate
- <br/>Gets or sets the <title> of the page
-
- Examples
- - On a page template file, insert the following line to create a THead component,
- <code>
- <com:THead Title="My Prado Page"/>
The checkbox will show "Agree" text on its right side. If the user makes any change to the
state, the checkAgree() method of the page class will be invoked automatically.