Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesLoosing DNN Control reference between ascx and ascx.design files Loosing DNN Control reference between ascx and ascx.design files
Previous
 
Next
New Post
2/19/2010 4:03 PM
 

 

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?

 
New Post
2/19/2010 4:52 PM
 

You can set your project to use the local IIS instead of the VS development server, and override the applicationroot URL. That way the designer will find the controls and use the correct type.

Please take a look at http://www.sipidcode.com/post/DotNetN... for a more detailed description. The interesting part is somewhere half way down the page.
It describes a C# project but I believe the settings should be the same.

 
New Post
2/19/2010 6:31 PM
 

 Johan,

Thank you, that appears to have solved my problem!

--Ming

 

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesLoosing DNN Control reference between ascx and ascx.design files Loosing DNN Control reference between ascx and ascx.design files


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out