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.0Module with multiple VIEWsModule with multiple VIEWs
Previous
 
Next
New Post
1/22/2006 2:07 PM
 

I am developing the DNN4 module; which has multiple ASCXs. These ASCXs will be hosted in different pages in the portal. It’s a mini Enterprise Inventory Module; having views like Procurement, Issue, Sale and Report.

Q1

I am confused to see that one can have multiple VIEW definitions (ASCXs) for one module; but dropping the module on the page show all the VIEWs. So should I define multiple modules in the portal? I-e Inventory-Procurement, Inventoru-Issue and so forth.

Q2

Whats the mechanism to find the URL where the “sibling” view is dropped; e-g Inventory-Procurement is on TabId = 201 and Inventory-Issue is on TabId = 203; how Inventory-Procurement instance can find where Inventory-Issue instance exists?

 
New Post
1/23/2006 11:31 AM
 
Just thought i would add on to this post, as i'm having the same difficulty (Q1 in the above post).  i don't want to create multiple modules, that seems inefficient, but i can't find a way to assign different parts of my module (the different ascx's) to different pages in DNN.  Does ANYBODY know how to do this???
 
New Post
1/23/2006 1:21 PM
 
To answer Q1 - The way people use Multiple Views is to add the Module to the page and delete the Views they don't need.

Alternatively, using the other approach (Q2), there are a number of ways this could be done.  When I develop a module that could have different parts on different pages, I usually create a "Setting" in the Settings page where I can identify the page where the related module is located.


Charles Nurse
Chief Architect
Evoq Content Team Lead,
DNN Corp.

Want to contribute to the Platform project? - See here
MVP (ASP.NET) and
ASPInsiders Member
View my profile on LinkedIn
 
New Post
1/24/2006 4:57 AM
 

I was trying to have one user controls inherited from Portal base control. And this control then loads different user controls as the user interacts. The problem I am facing right now is that Page.IsPostBack is always false of the “children” user control. I even have tried simulating the same with simple user controls; i-e container user control inherited from UserControl and not from DNN module, and I am having the same problem there.

If this is so by design; then I guess I have the only choice what Charles Nurse has suggested.

 
New Post
1/24/2006 12:52 PM
 
I have developed many modules where I use one "container" and then load user controls into that container, depedning on PostBAck events or querystring parameters.

The problem you are having with Page.IsPostBAck always being false, is probably because of when you are loading the control in the Page Life Cycle.

If you check out this MSDN Article you will see that PostBack is processed before Page Load.  Therefore you need to load your child controls in Page_Init, so the "structure" of Page is created before the postbacks are processed.  Other wise the Postback processing cannot find your control.


Charles Nurse
Chief Architect
Evoq Content Team Lead,
DNN Corp.

Want to contribute to the Platform project? - See here
MVP (ASP.NET) and
ASPInsiders Member
View my profile on LinkedIn
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Module with multiple VIEWsModule with multiple VIEWs


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