There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Error in All Views When Folder ID and FileID Have Same Values
If by chance the DNN FolderID of an album and the DNN FileID of a file in the same parent album are equal and the Index of each gallery object is also the same, the following error is logged and the actions of the context menus for the album and the faile
are "mixed up": Message: DotNetNuke.Services.Exceptions.PageLoadException: Multiple controls with the same ID '28' were found. FindControl requires that controls have unique IDs. ---> System.Web.HttpException: Multiple controls with the same ID
'28' were found. FindControl requires that controls have unique IDs. at System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) at System.Web.UI.Control.FindControl(String id, Int32 pathOffset) at System.Web.UI.Page.ProcessPostData(NameValueCollection
postData, Boolean fBeforeLoad) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
The problem arrises from the use of the FileID or FolderID being used as values for the ID attributes of the DNN Menu and also the menu item nodes in the form of id="28.0" where 28 is the FolderID and 0 is the item index in the appropriate gallery
Fixed by increasing specificity of ID to become id="Folder.28.0" and id="File.28.0" where the gallery object type becomes the id prefix. Note that this also is more xhtml compliant as an html element id should not begin with a number.