Hi,
I have a RAD Tooltip manager in my code that opens up the user control. Problem is my user control has a script tag and this tag is not getting executed. I will explain you in detail below.
Default.aspx
Default.aspx.cs
Tooltip.ascx
As you see in the ascx page, the url in the script tag generates me the contents. Contents from the Url will look something like this.Please keep in mind this data will be dynamic based on the symbol I pass in the query string.
Ex:
document.write('');
document.write('Home Page');
document.write('
Microsoft Corporation NASDAQ GS: MSFT
3/04/10 4:00pm 100.63 Change: +0.17 | +0.60%
1d | 5d | 1m | 3m | 6m | 1y
Open:
High:
Volume:
Yield:
28.65
28.65
28.27
15.73');
document.write('');
The same script tag if I place in aspx page - it works. But if I invoke using Rad Tooltip manager, it doesn't work. It just returns the blank tooltip for me.
Could someone help me out on this? Do I need to register this script anywhere if I want to use it with RAD Tooltip?
Regards,
Kishan G K
I have a RAD Tooltip manager in my code that opens up the user control. Problem is my user control has a script tag and this tag is not getting executed. I will explain you in detail below.
Default.aspx
<asp:ScriptManager ID="safd" runat="server"> |
</asp:ScriptManager> |
<div> |
<asp:HyperLink ID="hypTooltip" runat="server" NavigateUrl="#" Text="Tooltip" /> |
<telerik:RadToolTipManager ID="radToolTipManager" runat="server" OffsetY="-7" OffsetX="10" |
Width="300" Height="300" RelativeTo="Element" Position="Center" HideEvent="ManualClose" |
ShowEvent="OnClick" ManualClose="True" OnClientShow="OnClientShowTooltipMessage" |
OnAjaxUpdate="radToolTipManager_AJAXUpdate"> |
</telerik:RadToolTipManager> |
</div> |
protected void Page_Load(object sender, EventArgs e) |
{ |
if (!Page.IsPostBack) |
{ |
radToolTipManager.TargetControls.Add(hypTooltip.ClientID, true); |
} |
} |
protected void radToolTipManager_AJAXUpdate(object sender, ToolTipUpdateEventArgs e) |
{ |
Control ctrToolTip = Page.LoadControl("Tooltip.ascx"); |
e.UpdatePanel.ContentTemplateContainer.Controls.Add(ctrToolTip); |
} |
Tooltip.ascx
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Tooltip.ascx.cs" Inherits="WebApplication5.Tooltip" %> |
<div> |
Inside Div |
<script type="text/javascript" language="javascript" src="http://test.sharevalue.com/company.asp?symbol=MSFT"> |
</script> |
</div> |
Ex:
document.write('');
document.write('Home Page');
document.write('
Microsoft Corporation NASDAQ GS: MSFT
3/04/10 4:00pm 100.63 Change: +0.17 | +0.60%
1d | 5d | 1m | 3m | 6m | 1y
Open:
High:
Volume:
Yield:
28.65
28.65
28.27
15.73');
document.write('');
The same script tag if I place in aspx page - it works. But if I invoke using Rad Tooltip manager, it doesn't work. It just returns the blank tooltip for me.
Could someone help me out on this? Do I need to register this script anywhere if I want to use it with RAD Tooltip?
Regards,
Kishan G K