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.0HELP ME PLEASE - module developmentHELP ME PLEASE - module development
Previous
 
Next
New Post
7/5/2006 3:19 PM
 

Hello all!  I'm trying to create a course registeration module.  The module will initally display a listing of courses in some kind of data table (gridview, datalist, etc).  The course name will be a link and when a user clicks on teh link, they would be taken to a course detail page.  From taht page, the user could click an enroll button to enroll into the course.  I've just fininshed the new c# DNN book from apress.  The module template used when creating a new module only contains 1 view and 1 edit ascx files.  How do have mulitple views ( 1 to display the course) (1 to show the course detail)?  PLease help. 

 

 

 
New Post
7/5/2006 10:02 PM
 
I hope you get some responses on this becasue I was trying to figure out that myself.
 
New Post
7/5/2006 11:35 PM
 
This is exactly the module I developed for my first effort.  I used teh events module as a guide which provides almost exactly what you need.  Take a look at the module and build from that example.  If you get stuck on a section, post the details with the problem. 
 
New Post
7/6/2006 12:10 AM
 

I just looked at the Events module and it really didn't provide me with anything that i haven't already got working.  It has 1 view for all the events and 1 edit to edit an event.  I need a 2nd view and that view would still be read only, but have some kind of add button or enroll button on it (lets assume i have a different module to input data).  i have...

string sViewURL =
DotNetNuke.Common.Globals.NavigateURL(this.PortalSettings.ActiveTab.TabID,
this.PortalSettings, "SomeView", new string[]{"mid=" +
this.ModuleID.ToString(), "ItemID=" + oInfo.PKID.ToString(),
"SomeExtraID="
+ oInfo.FKID.ToString()});

...which will get me a navigation url for the link, but the "SomeView" is somewhat confusing.  Does anyone know where this View name setting is to mapped to and how it maps to an ascx file?  Or am i missing something?

Thanks Much,

Jason

 
New Post
7/6/2006 7:47 AM
 
Hi Jason,

as far as I remember, you can define a second "View"-ascx in the modules definition settings (see Host/Module Settings). That's where the mapping of ascxs and "keys" is set up. You'll have to define a key (ex. "SomeView"), set the type (module settings) to "View" and select the "Source"-ascx in the drop-down list. A known problem is: DNN keeps switching to the admin-skin for all keys except the 'original' "View"-key.

You might work around by defining two asp-panels in your 'original' "View"-ascx, one containing the courses-list, the other one containing the course's details (or whatever you want to display), setting them visible/invisible as needed. Another way might be late-binding the ascxs in the 'original' "View"-ascx, which is more complicated.

Hope, this helps...

Cheers,
Ben
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0HELP ME PLEASE - module developmentHELP ME PLEASE - module development


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