x First time here? Check out the FAQ
  • Avatar12posts34karma

    Can't access umbraco.uicontrols

    mahesh started this topic More than a year ago , this topic was edited at: Tuesday, March 29, 2011 10:13 AM

    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.

     

     

     


  • Replies

  • Avatar905posts1504karma
    Comment with ID: 70691
    Tim posted this reply More than a year ago

    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 posted this reply More than a year ago

    @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 posted this reply More than a year ago

    Hi,

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

     


  • Avatar905posts1504karma
    Comment with ID: 71565
    Tim posted this reply More than a year ago

    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 login or Sign up To post replies