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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...How to add additional control to a custom moduleHow to add additional control to a custom module
Previous
 
Next
New Post
7/4/2006 2:47 AM
 
I need to know how to add more than one view control, or edit control/update to a user defined module, and how the views can be called in .ascx file.(likewise we call EditURL())
 
New Post
7/4/2006 1:35 PM
 
This should be documented, but simply go to the module definitions, click edit on the module and then click add control.  You then can set the properties and names of the new control. 
 
New Post
7/5/2006 2:17 AM
 

It is true that we can add any number of controls to a module. But the problem is how to call them when a link click. If we put editurl() it calls to Edit. But we want to go to another view, what is the solution ?

 
New Post
7/7/2006 12:53 PM
 

One thing that in my opinion was not well defined was the deliniation between a module "definition" and a module "definition" object.  A module's definition is the base info on the module and that contains one or more "definintions" - what I call control groupings.  At least that is my understanding that keeps me sane. 

Each "control" as in mycontrol.ascx is represented as a "control" in a module's definition or grouping.  I know of no limit of how many controls you can have.  In one of my modules, I have over 20 controls, and adding as I continue to develop and refine.  I have this broken into two folders or modules - like the repository/dashboard module.  On one, where the master data for the app is entered and maintained, I have seven control grouping or definition, with 15 controls.  Each "defninitiion" has two controls - view and edit, and one has the settings.ascx. 

In my other module folder (essentially its own module like the repository dashboard) - I have two module definitions, one with four controls, and one with three.  These use the EditURL, but point to another control in the link:

NavigateUrl='<%# EditUrl("ItemID", Eval("ItemID").ToString(), "ViewDetails") %>

You can use the EditURL, just remember to change the control and supply the correct information required.  In the first module definition method, it adds all the default (view) controls to the page at once - which any definition you have with a default view control will be added to the page when you add the module to a pane. 

I hope this clears it up - I struggled with this concept for a while, mainly since I started using DNN with 4.0.x and asp.net 2.0, and the documentation was still geared towards the older versions.  There are examples of DNN asp.net 2.0 development, but most are very simplistic in nature - at least while I was trudging through it. 

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...How to add additional control to a custom moduleHow to add additional control to 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.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out