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?
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 }
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.
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?
@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
Hi,
Me got it worked after adding a reference to ClientDependency.Core.dll.
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
}
is working on a reply...