Copied to clipboard

Flag this post as spam?

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


  • Kris Dyson 54 posts 79 karma points
    Mar 15, 2010 @ 19:00
    Kris Dyson
    0

    New Umbraco Section; "An error has occurred because a control with id '{0}' could not be located.."

    Hi everyone, I have added a new umbraco back office section - everything was going great, but once I got to the stage where I want to postback and save the data, i got...

    An error has occurred because a control with id 'ctl00$body$ctl01$DetailsView1$ctl02' could not be located or a different control is assigned to the same ID after postback. If the ID is not assigned, explicitly set the ID property of controls that raise postback events to avoid this error.

    Is there some issue with normal ASP.NET post backs in Umbraco Admin area?

    thanks

    Kris

     

  • Lee Kelleher 4026 posts 15837 karma points MVP 13x admin c-trib
    Mar 15, 2010 @ 19:06
    Lee Kelleher
    0

    Hi Kristan,

    I've not seen this error myself, but I know it happens because I keeping getting ELMAH emails from one of my client's Umbraco installs, (but can't replicate the exception).  It wasn't with a custom section, but the standard "editContent.aspx".

    I thought is that it happens when you have multiple windows/tabs open ... but again I can't be sure!

    Does it happen to you in different browsers? and does it happen all the time?

    Curious if this happens to anyone else?

    Cheers, Lee.

  • Kris Dyson 54 posts 79 karma points
    Mar 15, 2010 @ 19:20
    Kris Dyson
    0

    Hi Lee, yeah - happens constantly, all the time in all browsers....

    The aspx looks like this

    <asp:Content ID="Content1" ContentPlaceHolderID="body" runat="server">
        <cc1:TabView runat="server" ID="tabControl" Width="552px" Height="692px"/>
        <cc1:Pane ID="Pane1" runat="server" Height="600px" Width="330px">
            <SP:Poll runat="server" />            
        </cc1:Pane>
    </asp:Content>

     

    The SP poll contains gridview and detailsview controls

    thanks!

    k

  • Kris Dyson 54 posts 79 karma points
    Mar 15, 2010 @ 19:31
    Kris Dyson
    0

    It's all OK, I just had to add the controls to the Tab Pane

    protected override void OnInit(EventArgs e)
            {
                // Tab setup
                FirstTab = tabControl.NewTabPage("First");
                FirstTab.Controls.Add(Pane1);
                Pane1.Controls.Add(GridView1);
                Pane1.Controls.Add(DetailsView1);
                Pane1.Controls.Add(EntityDataSource1);
                Pane1.Controls.Add(EntityDataSource2);
                base.OnInit(e);
            }

    Plus, i think the other option would have been to remove the umbraco master page reference, so it's essentially a standard asp.net page in an iframe within the Umbraco custom section.

    cheers

    Kris

     

  • 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