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?
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?
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.
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
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.
Hi Lee, yeah - happens constantly, all the time in all browsers....
The aspx looks like this
The SP poll contains gridview and detailsview controls
thanks!
k
It's all OK, I just had to add the controls to the Tab Pane
{FirstTab = tabControl.NewTabPage("First");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
is working on a reply...
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.