Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

DotNetNuke Marketplace
  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
CrystalTech Web Hosting™
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Loading another control in module
Previous Previous
 
Next Next
New Post 3/26/2006 2:09 AM
User is offline yoni go
149 posts
9th Ranked


Loading another control in module 

Hi,
I'm developing module with various controls when each control can call
the other controls. Controls must be seen by users (not admin).
Should i use the NavigateUrl method?
Must the called conrol be registered?
Can you please show me example or refer to documentation regard it?

Thanks.

 
New Post 3/27/2006 11:52 AM
User is offline Jeff Martin
61 posts
www.jeffmartin.com
10th Ranked


Re: Loading another control in module 

There are at least a couple ways that I have seen this done (and done it myself).

A.  Create multiple control entries in your Module Definition:
This would give each control a keyword that you would pass to the NavigateURL method to "call" another control.  This doesn't restrict admins seeing it at all as long as you make all the controls "View".  It does have the disadvantage, I believe, in that when you are showing your "alternate" controls, you would lose any other modules on the page.

B. Create asp:panel controls within your main control and manually read a querystring entry to determine which panel to show.
You could still form the link to the "alternate" controls using NavigateURL, but your module would need to read the querystring and determine which to show.  The other controls could also just be shown from postbacks and not use the querystring (this has disadvantages if your users are going to use the Back button).    This potentially makes your control fairly large and you will need to look out for things like doing processing in a control that isn't shown, etc, but it gives you quite a bit of flexibility.

Hope this helps,

 


Jeff Martin
MCSD C#
My Site
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Loading another control in module
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Alliance Systems & Programming Inc
Alliance is not just our name... it's how we do business. We partner with our clients, learning their business processes and standards and then applying our expertise to help them improve their workflow and profitability.
www.Alliancesys.com
Customer Connect
Customer Connect provides cutting edge solutions that deliver sales, marketing and customer service results.
www.customer-connect.com
TechNexxus
Business process and technology sourcing solutions delivering superior people, process and value. We have used, and continue to use, DNN successfully in numerous client projects to deliver exceptional value. We are proud to support the DNN team and community.
www.technexxus.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP