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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Advice on how and where to add a controlAdvice on how and where to add a control
Previous
 
Next
New Post
4/25/2007 5:08 PM
 

Hello!

I have created a few modules using the DNN Project Template and have had no problems (using DNN 4.5.1).  I would like to add a DateTime picker control but am not sure how to include this as a part of a the website.

I would like to use this control on any page which needs a datetime picker, so don't want to include the code in each custom module.

Thanks for your help!

John

 
New Post
4/27/2007 1:43 AM
 

If you are using the compiled module methodology
- then you would simply create a seperate module that only has you datepicker in it.

You then add an explicit reference to the datepicker control in any other module that you want to use it in.

Alternatively if you are using the dynamic module approach.

Create your control in the App_Code area - and it should automatically be compiled and referenceable at runtime.

Westa

 
New Post
5/5/2007 12:46 AM
 

Thanks, Westa

I have had to set this aside but will be taking another look at this next week.  Having given this some thought I will probably create a project and then reference it in the custom module(s) that need a datetime picker.

I am becoming more familiar with the ASP.NET 2 compilation model, but am not 100% clear on this.  For example, would the dynamic compilation module approach modify or change the DotNetNuke.dll assembly or can I choose to compile my code apart from the DotNetNuke assembly.  It would appear that the logical place to add my new class module would be in the component sub-directory, but I would prefer not to affect the DotNetNuke DLL.

I will need to mess around with this a bit and will share the pros and cons of adding to the website or creating a seperate project,  if I believe the information w/b helpful.

Thanks again!

John

 
New Post
5/5/2007 1:14 AM
 

You cna also use the built-in calendar control of the DNN.


"Knowledge Sharing Matters!"
 
New Post
5/5/2007 6:34 AM
 

johnvndnbrk wrote

I am becoming more familiar with the ASP.NET 2 compilation model, but am not 100% clear on this.  For example, would the dynamic compilation module approach modify or change the DotNetNuke.dll assembly or can I choose to compile my code apart from the DotNetNuke assembly.  It would appear that the logical place to add my new class module would be in the component sub-directory, but I would prefer not to affect the DotNetNuke DLL.

The major benefit of module based development is that - neither the Compiled Module method or the Dynamic Module method affect the DotNetNuke DLL in any way.

The Compiled Module method creates a seperate DLL - at COMPILE time - for your module that is installed in the websites BIN directory.

The Dynamic Module method compiles a DLL at RUNTIME for each file in your module that DOT.NET installs in its temporary DLL filestore.

If your component is CODE only - then you would create it in the \APP_CODE\ folder - otherwise you should create it as a Desktop Module - so that it can easily be distributed. 

Westa

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Advice on how and where to add a controlAdvice on how and where to add a control


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