I'm not sure where I am going wrong with this, but I just want to dynamically add some text to a literal when the Tooltip is activated.
My aspx code is :
<asp:Image ID="helpImg" runat="server" ImageUrl="~/images/help4.gif" /> |
<telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" |
OnAjaxUpdate="OnAjaxUpdate" Width="250" Height="175" HideEvent="ManualClose" |
ShowEvent="OnClick" Skin="Hay"> |
<TargetControls> |
<telerik:ToolTipTargetControl TargetControlID="helpImg" /> |
</TargetControls> |
</telerik:RadToolTipManager> |
The code behind is:
Protected Sub OnAjaxUpdate(ByVal sender As Object, ByVal args As ToolTipUpdateEventArgs) |
Dim textLit As New Literal |
textLit.Text = "texteexttext" |
RadToolTipManager1.TargetControls.Add(textLit.ID) |
End Sub |
Not sure where I am going wrong...
Thx