Dynamic rich media component for ASP.Net Flash, Video, Audio, FlashVideo and ToolTip / Balloon Help controls for C# and VB.Net
Welcome Guest Search | Active Topics | Members | Log In | Register

Labels in a Template Options · View
aims
Posted: Tuesday, November 25, 2008 10:51:57 AM
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>
scott_lewarne
Posted: Thursday, February 18, 2010 5:19:47 AM
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.
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.