This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.
Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.
Before posting questions here you might want to review the developer documentation.
Hi,
I've created a copy of the normal Register page called UserRegister and plugged it into Joe's property.
When I use the mojoprofile.config to create new properties, I get the below exception on page load. Commenting out the call to PopulateRequiredProfileControls() gets rid of the exception.
On debugging, it looks like the Page_Load is being called twice, but the exception comes from within the .net code.
Any Ideas?
Exception:
[HttpException (0x80004005): Multiple controls with the same ID 'txtFirstName' 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) +8905384 System.Web.UI.Control.FindControl(String id) +12 AjaxControlToolkit.ExtenderControlBase.FindControlHelper(String id) +112 AjaxControlToolkit.ExtenderControlBase.FindControl(String id) +37 System.Web.UI.ExtenderControl.RegisterWithScriptManager() +105 System.Web.UI.ExtenderControl.OnPreRender(EventArgs e) +19 AjaxControlToolkit.ExtenderControlBase.OnPreRender(EventArgs e) +36 System.Web.UI.Control.PreRenderRecursiveInternal() +103 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496
If you have AutoEventWireup="true" in the .aspx file then it will fire twice because the events are wired up from code in OnInit
the error sounds clear it has 2 controls with the same server side id in your custom version.