This is a migrated thread and some comments may be shown as answers.

Load UserControls

1 Answer 57 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Fernando
Top achievements
Rank 1
Fernando asked on 26 Aug 2011, 07:30 PM
Hi
I have a problem following this demo http://demos.telerik.com/aspnet-ajax/tooltip/examples/targetcontrolsandajax/defaultcs.aspx#
i can't load the user control in this code
 private void UpdateToolTip(string elementID, UpdatePanel panel)
        {
            Control ctrl = Page.LoadControl("ProductDetailsCS.ascx");
            panel.ContentTemplateContainer.Controls.Add(ctrl);
            ProductDetailsCS details = (ProductDetailsCS)ctrl;
            details.ProductID = elementID;
        }

 
ProductDetailsCS not found. 
i need your help, may be i doing something wrong.
thk.

1 Answer, 1 is accepted

Sort by
0
Fernando
Top achievements
Rank 1
answered on 29 Aug 2011, 03:48 PM
Hi
i solved this problem.
i include my control in the page whith this tag
<%@ Register Src="ctrInfoCartolaFFMM.ascx" TagName="ctrInfo" TagPrefix="uc1" %>
thk  and sorry 
Tags
ToolTip
Asked by
Fernando
Top achievements
Rank 1
Answers by
Fernando
Top achievements
Rank 1
Share this question
or