Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • mahesh 12 posts 34 karma points
    Mar 23, 2011 @ 13:22
    mahesh
    0

    Can't access umbraco.uicontrols

    Hi,

      I created an .aspx page for custom section which want some umbraco controls to display. 

    For this i added the following line in .aspx page.

    <%@ Register TagPrefix="umb" Namespace="umbraco.uicontrols" Assembly="controls" %>

    But i can't access the controls like UmbracoPanel and Pane..

     

    Can you help me on this.

     

     

     

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Mar 23, 2011 @ 17:09
    Tim
    0

    I think that should work, does your page use the umbracoPage.Master master page as well? Also make sure that the code behind file inherits from UmbracoEnsuredPage instead of the usual Page, otherwise the page will be visible to non-logged in users.

    When you say that you can't access the controls, are you not getting intellisense, or are you trying to access them from the code behind?

  • mahesh 12 posts 34 karma points
    Mar 24, 2011 @ 05:14
    mahesh
    0

    @Tim: Yes my page uses umbracoPage.Master. Inherits from UmbracoEnsuredPage means? I can't understand.

    I am not getting the intellisense and also can't access from code behind


  • mahesh 12 posts 34 karma points
    Mar 26, 2011 @ 05:18
    mahesh
    2

    Hi,

    Me got it worked after adding a reference to ClientDependency.Core.dll.

     

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Mar 29, 2011 @ 10:13
    Tim
    0

    Sorry, I've been away! Glad you got it working!

    :)

    For the inheritance part, the page should inherit from UmbracoEnsuredPage. So in your code behind, the page class declaration would look something like:

    public partial class your_page_name : umbraco.BasePages.UmbracoEnsuredPage
    {
         //code here
    }

Please Sign in or register to post replies

Write your reply to:

Draft