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.0Suggestions for implementing multiple web access controlsSuggestions for implementing multiple web access controls
Previous
 
Next
New Post
5/6/2008 12:37 AM
 

Hello,

After searching the forum i didn't find any others that seem to have this query, and have read Michael Washingtons tutorial on navigating to additiona controls - however they fire from click events on buttons within the module code.

I am building a module for our website at the moment, its functionality is as follows: There is a table of Products, and a table of margins (%). i have a number of different 'views' of this data i wish to make available to the end users. I had intended to simply create multiple ascx pages..

for example, a page that simply displays a gridview of the products (whole sale price).
a page that shows the products pricing modified by the relative margins
A page that shows editable fields for changing the margins for different products.

I had considered simply having a single ASCX file that enabled/disabled the various gridviews etc as per URL based directive, and can still do this, however i've started coding as separate pages thus far - it doesn't really matter.

My question is, I would my wonderful built in DNN dropdown menu, to show "Pricing" and when you click, it drops down to show 3 options - i cannot see a way of doing this without actually creating separate pages and specifying "Pricing" as the parent, and then i need to create a module anyway to place on the page to trigger the NavigateURL(), or simply to split up the module into 3 separate modules...

Is there something simple i'm missing? What is an advisable way to achieve what i want from the menu?

Thanks again, Charles

 
New Post
5/6/2008 1:14 AM
 

If you're loading your different controls based on a querystring parameter, through one control that acts as a "loader" you can create new "pages" in DNN, and instead of them being actual pages have them go to a predefined URL, the URL being your existing page with different querystring parameters being passed to that one page.

Are you following what I'm saying?


Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
5/6/2008 1:21 AM
 

Chris,

What i think you're saying, is that each sub-menu item contains a parameter in the querystring that allows my code to identify what content to load? If this is so, yes i'd thought about this and am happy to rework what i've done so far into a single user control with visisbility constraints - however i have no idea how i would modify the built in menu links to incorporate a query string? In my limited experience so far, i add a page - name it, select a parent, and it appears magically in the menu! how can i add a parameter to those pages to achieve my goal?

Thanks

 
New Post
5/6/2008 1:26 AM
 

I have found the MultiView control is my answer in these situation. The main reason is that I always have all the variables needed to make decisions. For example, if they chose option A on the first "screen" (panel), when they ask for pricing I can display something different than if they chose option B on the first "screen".



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
5/6/2008 1:42 AM
 

Michael,

Thankyou for pointing out the multiview to me, it seems the perfect way to achieve what i'm after should i incorporate all "pages" into 1 web control. I can see how to use a query string parameter to tell my page which view to activate, however again i'm stuck with this - is there a way to add a parameter to my DNN generated menu if i was to simply add 3 pages, all calling the same module?

Charles

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Suggestions for implementing multiple web access controlsSuggestions for implementing multiple web access controls


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