|
|
Hi, recently I encounter this when trying to add a new page with child parts:
"Multiple controls with the same ID 'xxx' were found. FindControl requires that controls have unique IDs."
which can be reproduced on demo site http://demo.n2cms.com/
I try to add a FAQ page, when click on Save(whether publish or preview), the following exception is thrown:
Server Error in '/' Application.
Multiple controls with the same ID 'Text' were found. FindControl requires that controls have unique IDs.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the
error and where it originated in the code.
Exception Details: System.Web.HttpException: Multiple controls with the same ID 'Text' were found. FindControl requires that controls have unique IDs.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace:
[HttpException (0x80004005): Multiple controls with the same ID 'Text' were found. FindControl requires that controls have unique IDs.]
System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +265
System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +311
System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +311
System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +311
System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +311
System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +145
System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +365
System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +365
System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +365
System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +365
System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +365
System.Web.UI.Page.FindControl(String id) +38
System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +287
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +878
|
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
can you help on this ? thanks a lot!
|
|
Coordinator
May 20, 2012 at 9:33 PM
|
I think this might have been fixed by
this commit. What version are you using? I can't reproduce this on the demo site.
|
|
|
|
Hi libardo,
I'm using v2.3 (commit 56ad70f719d2af9116562a424751fa1dca72df72)
On the demo site, I right click on Home and select "New", then I choose to New a FAQ page.
In "New FAQ" page, I just input Title and click "Save and Publish", then I see the error.
|
|
Coordinator
May 22, 2012 at 9:30 PM
|
Ahh, found it! Thanx
|
|