Hello,
I add a control to a tool tip manager. On mouseover I update the tooltip:
Step 1:
private void UpdateToolTip(string elementID, UpdatePanel panel)
{ Control ctrl = Page.LoadControl("TaskDetail.ascx");
TaskDetail details = (TaskDetail)ctrl;
details.TaskId = elementID;
panel.ContentTemplateContainer.Controls.Add(details);
}
Step 2:
protected void OnAjaxUpdate(object sender, ToolTipUpdateEventArgs args)
{
this.UpdateToolTip(args.Value, args.UpdatePanel);
}
Step 3:
TaskDetail.ascx will be rendert.
But the shown tool tip havn't no content or data.
Thanks for support and help.
Rahel
I add a control to a tool tip manager. On mouseover I update the tooltip:
Step 1:
private void UpdateToolTip(string elementID, UpdatePanel panel)
{ Control ctrl = Page.LoadControl("TaskDetail.ascx");
TaskDetail details = (TaskDetail)ctrl;
details.TaskId = elementID;
panel.ContentTemplateContainer.Controls.Add(details);
}
Step 2:
protected void OnAjaxUpdate(object sender, ToolTipUpdateEventArgs args)
{
this.UpdateToolTip(args.Value, args.UpdatePanel);
}
Step 3:
TaskDetail.ascx will be rendert.
But the shown tool tip havn't no content or data.
Thanks for support and help.
Rahel