From fa5d24ff01e1d4fad243625463d4c164c02eefd7 Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 24 Jan 2006 14:15:41 +0000 Subject: Added description about setting component IDs in templates. --- .../protected/pages/Configurations/Templates1.page | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'demos/quickstart/protected/pages/Configurations') diff --git a/demos/quickstart/protected/pages/Configurations/Templates1.page b/demos/quickstart/protected/pages/Configurations/Templates1.page index 102ee035..79f5cca9 100644 --- a/demos/quickstart/protected/pages/Configurations/Templates1.page +++ b/demos/quickstart/protected/pages/Configurations/Templates1.page @@ -21,10 +21,14 @@ body content ComponentType can be either the class name or the dotted type name (e.g. System.Web.UI.TControl) of the component. PropertyName and EventName are both case-insensitive. PropertyName can be a property or subproperty name (e.g. Font.Name). Note, PropertyValue will be HTML-decoded when assigned to the corresponding property. Content enclosed between the opening and closing component tag are normally treated the body of the component.
-It is required that component tags nest properly with each other and an opening component tag be paired with a closing tag, similar to that in XML. The following shows a component tag specifying the Text property and Click event of a button control, +It is required that component tags nest properly with each other and an opening component tag be paired with a closing tag, similar to that in XML. +
+
+The following template shows a component tag specifying the Text property and OnClick event of a button control,
To deal conveniently with properties taking take big trunk of initial data, the following property initialization tag is introduced, @@ -36,6 +40,15 @@ PropertyValue It is equivalent to ...PropertyName="PropertyValue"... in every aspect. Property initialization tags must be directly enclosed between the corresponding opening and closing component tag.
+
+When specified in templates, component ID property has special meaning in addition to its normal property definition. A component tag specified with an ID value in template will register the corresponding component to the template owner control. The component can thus be directly accessed from the template control with its ID value. For example, in Home page's template, the following component tag
+