This just started happening recently.
I don’t know what has changed, maybe as setting in Visual Studio itself? But it driving me batty.
I’m coding with the DNN Compiled Template.
As an example, the “Edit.ascx” control that is generated has 3 dnn controls
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
<%@ Register TagPrefix="dnn" TagName="TextEditor" Src="~/controls/TextEditor.ascx"%>
<%@ Register TagPrefix="dnn" TagName="Audit" Src="~/controls/ModuleAuditControl.ascx" %>
When I initially view the Edit.ascx.designer.vb file
I have these controls
Protected WithEvents lblContent As DotNetNuke.UI.UserControls.LabelControl
Protected WithEvents txtContent As DotNetNuke.UI.UserControls.TextEditor
Protected WithEvents ctlAudit As DotNetNuke.UI.UserControls.ModuleAuditControl
At some point, Microsoft will go through and change the Edit.ascx.designer.vb file and I end up with
Protected WithEvents lblContent As Global.System.Web.UI.UserControl
Protected WithEvents txtContent As Global.System.Web.UI.UserControl
Protected WithEvents valContent As Global.System.Web.UI.WebControls.RequiredFieldValidator
So the controls change from the DNN version of the control to the System.Web version of the control.
The only way I seem to be able to get Microsoft to stop doing this is by putting the original controls into the Edit.ascx.vb file
Is there a better way to resolve this?
Anyone else have this problem?