Load UserControls

2 posts, 0 answers
  1. Fernando
    Fernando avatar
    12 posts
    Member since:
    Apr 2011

    Posted 26 Aug 2011 Link to this post

    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.
  2. Fernando
    Fernando avatar
    12 posts
    Member since:
    Apr 2011

    Posted 29 Aug 2011 Link to this post

    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 
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top