1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Loading the user control dynamically

Loading the user control dynamically

2 posts, 0 answered
  1. sarath
    sarath avatar
    24 posts
    Registered:
    24 Jan 2010
    08 Feb 2010
    Link to this post
    Hi,

    I have master page which is used for CMS pages and I have a master page which is used for static pages. In the CMS master I added top menu user control(topmenu.ascx). I want to pull this top menu programmatically from static master page and needs to render it. So that all the static pages which are used static master page will have the same top menu user control(topmenu.ascx).

    Thanks,
    Sarath
  2. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    08 Feb 2010
    Link to this post
    Hi Sarath,

    Maybe not a direct answer to your question, but can't you just upload your UserControl in Sitefinity? Then you could also place it on your static masterpage? Just define a contentplaceholder on your static masterpage.

    But, maybe this is too simple? :)

    Cheers,
    Daniel
2 posts, 0 answered