Rank: Newbie Groups: Member
Joined: 11/25/2008 Posts: 1 Points: 3
|
Hi,
I am trying to programtically (in code behind C#) change the lables in the ToolTipContentTemplate but at runtime I cannot find the controls anywhere. Ho do I access them and change the text at runtime? Could you please help me out?
Thanks
<ASPNetToolTip:ToolTip ID="ttHelp" runat="server" ControlToToolTip="imgHelp" FollowMouse="True" TargetStyle-Alignment="Default" TargetStyle-CursorStyle="Help"> <ToolTipContentTemplate> <DIV class="balloon"></DIV> <DIV class="balloontop"></DIV> <DIV class="balloonmiddle"><STRONG> <asp:Label ID="lblResource" runat="server" Text=""></asp:Label> </STRONG> <BR> <BR> <asp:Label ID="lblSubject" runat="server" Text=""></asp:Label> <BR> <BR> </DIV> <DIV class="balloonbottom"></DIV> </ToolTipContentTemplate> </ASPNetToolTip:ToolTip>
|
Rank: Newbie Groups: Member
Joined: 2/18/2010 Posts: 1 Points: 3 Location: Portland, OR
|
I use FindControl on the tooltip object itself to get references to controls within the template, and it seems to work well for me. Use FindControl just like you would look for controls within a ListView template.
|