Hi,
Ok probably doing something wrong but its stumping me. tyring to get a radtooltipmanager working for instructions for a page. So if they hover over an image it pops up with the instructions from a database. The problem is that its is doubling up the information, its like 2 pulls are coming out of the database, so all the text is written and then written agian.
Ok probably doing something wrong but its stumping me. tyring to get a radtooltipmanager working for instructions for a page. So if they hover over an image it pops up with the instructions from a database. The problem is that its is doubling up the information, its like 2 pulls are coming out of the database, so all the text is written and then written agian.
<
div
class
=
"cancelpg"
>
<
h3
><
asp:Label
ID
=
"lblInstruct"
runat
=
"server"
>Hover over this <
asp:Image
ID
=
"imgHover"
runat
=
"server"
ImageUrl
=
"~/Images/ViewResources.gif"
/> for Instructions</
asp:Label
>
<
telerik:RadToolTipManager
ID
=
"rttmInstructions"
runat
=
"server"
Position
=
"Center"
Modal
=
"true"
ManualClose
=
"true"
OnAjaxUpdate
=
"rttmInstructions_AjaxUpdate"
>
<
TargetControls
>
<
telerik:ToolTipTargetControl
TargetControlID
=
"imgHover"
/>
</
TargetControls
>
</
telerik:RadToolTipManager
>
</
h3
>
</
div
>
Protected Sub rttmInstructions_AjaxUpdate(sender As Object, e As Telerik.Web.UI.ToolTipUpdateEventArgs) Handles rttmInstructions.AjaxUpdate
Dim lblInsideToolTip As New Label()
sql = "Select strMessage from iMAC_Message"
myDataTable = New DataTable
myDataTable = getReader(sql)
If myDataTable.Rows.Count > 0 Then
lblInsideToolTip.Text = myDataTable.Rows(0)(0)
End If
e.UpdatePanel.ContentTemplateContainer.Controls.Add(lblInsideToolTip)
End Sub