ComponentOne ToolTip for ASP.NET AJAX: C1ToolTip Appearance > Using Templates to Embed HTML Controls in C1ToolTip

Using Templates to Embed HTML Controls in C1ToolTip

Templates can be used to embed other HTML controls in the C1ToolTip control. The templates are useful for making the C1ToolTip more coherent to your application and for displaying additional information, such as images or text.

To use a template, complete the following steps. In this example, we'll add an empty TextBox control to the C1ToolTip.

1.   Click the Source tab to view the source markup for your project.

2.   Add the <Template> tag within the C1ToolTip tags so it looks like the following:

<cc1:C1ToolTip ID="C1ToolTip1" runat="server" VisualStyle="ArcticFox" AutoClose="false" VisualStylePath="~/VisualStyles">

      <Template>

          <asp:TextBox runat="server" ID="abc"></asp:TextBox>

      </Template>

      <TargetControls >

          <cc1:C1ToolTipTargetControl TargetControlID="Button1"/>

          <cc1:C1ToolTipTargetControl TargetControlID="Button2"/>

      </TargetControls>

</cc1:C1ToolTip>


Send comments about this topic to ComponentOne.
Copyright © 1987-2010 ComponentOne LLC. All rights reserved.