Learn More





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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...DnnDatePicker error when adding on a custom moduleDnnDatePicker error when adding on a custom module
New Post
4/14/2014 6:08 AM

I am trying to add a DnnDatePicker to my custom module but I get a "Error Creating Control" error (unknown server tag dnn:DnnDatePicker).

 <asp:Label ID="Label1" runat="server" CssClass="dnnFormLabel" AssociatedControlID="StartDatePicker" Text="Session date" />

    <div style="font-weight:bold" aria-haspopup="True" class="DatePickerText"></div>

    <dnn:DnnDatePicker runat="server" ID="StartDatePicker" /></div>

My import statements:

<%@ Register Assembly="DotNetNuke.Web" Namespace="DotNetNuke.Web.UI.WebControls" TagPrefix="dnn" %>

<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/labelcontrol.ascx" %>


Any ideas?

New Post
4/21/2014 8:20 AM
have you added the webcontrols library as a reference in your project properties?

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
New Post
4/21/2014 8:43 AM

Hi Cathal, 

if you mean the DotNetNuke.UI.WebControls or the System.Web.UI.WebControls then yes-both. 

New Post
4/21/2014 1:46 PM

Cathal would be referring to the DotNetNuke.Web assembly.

For some reason, I have been having similar issues with the DotNetNuke.Web.UI.WebControls.DnnFilePickerUploader control. Anytime that I modify the module control's .ascx file, the corresponding and  automatically generated .ascx.designer.cs designer file looses the proper type declaration for this control which reverts to its base class System.Web.UI.UserControl. I have to manually edit the designer file (which I know should not be done) to restore the correct type declaration before compiling. Perhaps something similar is happening with your module control's designer file.

Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
New Post
4/21/2014 3:53 PM
Hi William,
Yes this is what is happening. I had to delete the declaration in the designer to get it to compile. However I haven't managed to get it working yet.
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...DnnDatePicker error when adding on a custom moduleDnnDatePicker error when adding on a custom module

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.
Try Evoq
For Free
Start Free Trial
a Demo
See Evoq Live
Need More Information?