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...Newbie QuestionNewbie Question
Previous
 
Next
New Post
8/16/2007 9:57 AM
 

I really like the layout and built in features of DNN, however, I am an ASP.NET/Database developer who wants to be able to easily write modules with controls and logic to access a complex database (in my case I am a teacher and have a multi-table gradebook database). It seems that module development is overly complex to me. In my frustration I was thinking of using an iframe module to access a plain old ASP.NET page that does exactly what I want.

Am I missing something about module development that would make doing something really simple like adding a gridview to display a mutli-table query in a module? Is that not what modules are for?

 
New Post
8/17/2007 4:31 AM
 

Hi Mark, module development must not be complex at all. You can reuse all your existing knowledge. The main difference is that module are enhanced ascx controls, and no aspx pages.

Simple steps for displaying a grid view, splitted into two idenpended steps to separate issues of the gridview with the dotnetnuke integration. Once you are getting familar with module dev., you will start diirectly within DotNetNuke

1) Without DotNetNuke:

  • Write your gridview and all you logic in one example.ascx.
  • Create an aspx page, but no logic inside, just drag and drop your user control inside
  • Ensure that everything is working as expected.

2) Integration into DNN

  • Create a folder "example" in dotnetnuke/desktopmodules
  • Copy your example.ascx and example.ascx.vb into that folder
  • Open example.ascx.vb and change the "inherits" line to inherits DotNetNuke.Entities:Modules.PortalModuleBase
  • Open you DNN in browser, go to Host->Module Definitions. 
    Click on Create a new Module.
    Enter "example" as the module name, folder name and friendly name. Click on create
    Enter "example" inside "New definition", click on add definition
    Click on Add control, choose desktopmodules/example/example.ascx as source. Click on Update
  • Create a new page/tab. Add the module "example".
  • Enjoy

3) Examine the framework, study the source of some core modules to learn the befits of the platform.

Even as lead of the iframe module I won't encourage using Iframe for your issue.

 
New Post
8/17/2007 9:15 AM
 

Ahhh.... that makes sense (I told you I was new). I wish they had shown that in the Wrox DNN Book or that 10 part video I watched on module development just to get me started.

So, does the extra complexity come in when adding things to the DNN database? I would like to use my existing Access database with all my old grades and students already in it, is that ok to copy the database into the DNN app data folder? When should I use the DNN database and when should I use another?

Thanks!

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Newbie QuestionNewbie Question


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