Hello!
I'm trying to reduce the graphic overload of pages in Admin/Edit mode.
Accordingly the portal skin is "bundled" with:
<% if PortalSettings.UserMode = PortalSettings.Mode.Edit and DotNetNuke.Security.PortalSecurity.IsInRole("Administrators") then %>
.... some content
<% else %>
.......some other content
<% end if %>
And this works perfectly.
Trying the same method in a container results in the following error:
Could Not Load Container: /Portals/.../Containers/search/maxheader.ascx
DotNetNuke.Services.Exceptions.ModuleLoadException: Unhandled error loading module. ---> System.Web.HttpCompileException: .....\Containers\search\maxheader.ascx(16): error BC30469: Reference to a non-shared member requires an object reference. at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at DotNetNuke.UI.Skins.Skin.LoadContainer(String ContainerPath, Control objPane).
What can I do to display the container differently between View and Edit modes?
Thank you!!!