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

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Error DnnDatePicker 6.2.1Error DnnDatePicker 6.2.1
Previous
 
Next
New Post
8/6/2012 10:56 AM
 

Hi all,

I have implemented dnn 6.2.1 on a site and am working with the UX guidelines in trying to implement the datepicker.

1. Use:

<dnn:Label runat="server" ID="lb_DateOfBirth" ResourceKey="lb_DateOfBirth" />
        <dnn:DnnDatePicker runat="server" MaxLength="256" CssClass="dnnFormRequired"/>

Error:

"Error Creating Control - dnn:dnndatepickerUnable to create type 'dnn:DnnDatePicker'. Could not load file or assembly 'Telerik.Web.UI, Version=2012.1.411.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The system cannot find the file specified."  Not display control in file ascx.

2.Use:

 <div class="dnnFormItem">
            <asp:Label ID="Label1" runat="server" CssClass="dnnFormLabel" AssociatedControlID="StartDatePicker" Text="Pick a date" />
            <dnn:DnnDatePicker runat="server" CssClass="dnnFormInput" ID="StartDatePicker" />
    </div>

Error    1    The type or namespace name 'Web' does not exist in the namespace 'DotNetNuke' (are you missing an assembly reference?)    D:\xxx\Modules\NHM_Users\ViewNHM_Users.ascx.designer.cs    220    38

"protected global::DotNetNuke.Web.UI.WebControls.DnnDatePicker StartDatePicker;"


 
New Post
8/7/2012 1:55 PM
 
HI,
Can any one help please?

Thank you.
 
New Post
8/8/2012 6:16 AM
 
Assuming you're using Visual Studio for your development; did you correctly reference DotNetNuke.dll, DotNetNuke.Web.dll and Telerik.Web.UI.dll into your project, and did you correctly 'register' them in your .ascx-file (thus using the right register-directives)?

You should reference those DLL's, set 'Copy local' to 'false' for those references and make sure that your module's DLL is built into DNN's bin/-directory.
 
New Post
8/9/2012 7:26 AM
 
Ok, thanks Kornelis. Control DnnDatePicker not display in tab design visual studio.

"Error Creating Control - DateOfBirthUnknown server tag 'dnn:DnnDatePicker'."
my code:
"
<%@ Control Language="C#" Inherits="MHM.Modules.NHM_Users.ViewNHM_Users" AutoEventWireup="true" CodeBehind="ViewNHM_Users.ascx.cs" %>
<%@ Register TagPrefix="dnn" TagName="label" Src="~/controls/labelControl.ascx" %>
<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.Web.UI.WebControls" Assembly="DotNetNuke.Web" %>









CssClass="dnnFormMessage dnnFormError" ResourceKey="lb_UserName.Required" />




CssClass="dnnFormMessage dnnFormError" ResourceKey="lb_DateOfBirth.Required" />



  • ResourceKey="btnl_Reg" onclick="btnl_Reg_Click" />




"
 
New Post
8/9/2012 8:00 AM
 
It appears some elements aren't beïng closed correctly in your ASCX/HTML-markup. Or did that happen during copypasting? Other than that I don't see why the DnnDatePicker wouldn't work..

How is the 'DateOfBirth'-DnnDatePicker beïng declared in your designer file? And does your project build into a DLL correctly?

You -could- try removing the 'MinDate'-attribute, though I don't think that will be the cause of the problem; only if it happens to not accept the "dd/MM/yyyy"-format you use to set it.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Error DnnDatePicker 6.2.1Error DnnDatePicker 6.2.1


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