Copied to clipboard

Flag this post as spam?

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


  • David F. Hill 122 posts 242 karma points
    Jul 23, 2011 @ 22:26
    David F. Hill
    0

    Custom Umbraco Section problem with edit aspx

    Hello Umbraco Colleagues,
    I'm trying to create a custom section by following Tim's example on umbraco.tv.
    Everything works except the editCorporateCompliance.aspx page.
    None of the controls with the "umb" prefix are recognized - thus it will not compile.
    I'm using Umbraco 4.7.0.

    Here is my code:

    <%@ Page Language="C#" MasterPageFile="/umbraco/masterpages/umbracoPage.Master" AutoEventWireup="true" CodeBehind="editCorporateCompliance.aspx.cs" Inherits="CustomTree.editCorporateCompliance" %>
    <%@ Register TagPrefix="umb" Namespace="umbraco.uicontrols" Assembly="controls" %>

    <asp:Content ID="Content" ContentPlaceHolderID="body" runat="server">
    <umb:UmbracoPanel ID="Panel1" runat="server" hasMenu="true" Text="Edit Corporate Compliance">
    <umb:Pane ID="Pane1" runat="server">

    <umb:PropertyPanel ID="PPanel1" runat="server" Text="Wrong word">
    <asp:TextBox ID="txtWrongWord" runat="server" MaxLength="150"
    CssClass="guiInputText guiInputStandardSize"></asp:TextBox>
    </umb:PropertyPanel>

    <umb:PropertyPanel ID="PPanel2" runat="server" Text="Correct word">
    <asp:TextBox ID="txtCorrectWord" runat="server" MaxLength="150"
    CssClass="guiInputText guiInputStandardSize"></asp:TextBox>
    </umb:PropertyPanel>

    <umb:PropertyPanel ID="PPanel3" runat="server" Text="Cause">
    <asp:TextBox ID="txtCause" runat="server" TextMode="MultiLine"
    CssClass="guiInputText guiInputStandardSize"></asp:TextBox>
    </umb:PropertyPanel>
    </umb:Pane>
    </umb:UmbracoPanel>
    </asp:Content>

    I saw one post on Stack Overflow that suggested adding a reference to ClientDependency.Core but that didn't help.

    I can't see what I'm doing wrong.
    If anyone has gotten this to work, could you help me out and/or post the solution?

    Thanks,

    David

  • David F. Hill 122 posts 242 karma points
    Jul 25, 2011 @ 18:15
    David F. Hill
    0

    Update:

    I got the application working simply by recreating the editCorporateCompliance.aspx page. I cannot say with certainty what the issue might have been.

    I will say the example on .tv (http://umbraco.com/help-and-support/video-tutorials/developing-with-umbraco/custom-sections,trees-and-pages/creating-edit-pages) works well.

    David

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies