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  |  

  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Navigating to a specific UserControl in my module--how?
Previous Previous
 
Next Next
New Post 6/9/2008 9:55 AM
Unresolved
User is offline Joshua Beall
121 posts
9th Ranked


Navigating to a specific UserControl in my module--how? 

Hi There,

I'm working on a Quiz module.  I went through Michael Washington's module development guide (which was very helpful).

My first iteration had three UserControls: a View control, an Edit control, and a Settings control.

I am now adding a feature that will allow admins to view all the quizzes that have been taken.  I created a new user control, QuizGrades.

But the problem is, I'm not sure how I can navigate to that UserControl?  I can use EditUrl() and NavigateUrl() in order to get to the Edit and View controls, respectively, and the Settings control shows up as part of the module settings page.  But how do I get to my new QuizGrades control?  I already added it as a control associated with this module, with the key "ViewGrades" and the type of "Admin".

 
New Post 6/9/2008 10:39 AM
User is offline Joshua Beall
121 posts
9th Ranked


Re: Navigating to a specific UserControl in my module--how? 

It looks like what I want is:

DotNetNuke.Common.Globals.NavigateURL("ViewGrades","mid",this.ModuleId.ToString())

Is that right?  First I tried just Globals.NavigateURL("ViewGrades"), but that didn't work.  I noticed that the URL was missing the module ID (which was present in the Edit URL, so I tried manually adding it in, and then it worked.  Then I tried passing mid and the module ID as additional string parameters ot NavigateURL -- and hey, it worked!  But I don't know if that's what you're "supposed" to do.

  -Josh

 
New Post 6/10/2008 8:01 AM
User is offline Golden Snitch
32 posts
10th Ranked


Re: Navigating to a specific UserControl in my module--how? 

Use the EditURL method to build your URL.  It has overloads for just the "ControlKey" and for passing query string parameters.  Keep in mind that this will load your module without the other modules on the page.  In order to get different module controls to load and still display the rest of the page you have to load the controls dynamically.  For an example of loading control dynamically check out the source of the Events module.  Most of the logic is in Events.ascx.vb.

 
New Post 6/10/2008 8:06 AM
User is offline Brandon Haynes
550 posts
everysport.net
8th Ranked


Re: Navigating to a specific UserControl in my module--how? 

Golden Snitch is correct, although I'd add that there are several NavigateUrl overloads that allow specification of a ControlKey.  One of these should meet your needs, provided that the "module zoom" DNN behavior that Golden described fits your design requirements.

You always have the option of controlling the view yourself through the use of AJAX and a MultiView control (or similar strategy).

Brandon


Brandon Haynes
BrandonHaynes.org
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Navigating to a specific UserControl in my module--how?
 


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.

 


DNN Outsourcing
50% more affordable services comparing to Western Europe and US: Custom DotNetNuke module development, skins, consulting, maintainence... Over 15.000 working hours of experience in custom DotNetNuke Solutions development, 8 years experience in outsourcing, excellent references!
www.dnnoutsourcing.com
Expressnet - DotNetNuke Hosting
Expressnet provide premium quality ASP.NET Web Hosting. We specialise in Windows based products including ASP.NET and Microsoft SQL Server. We offer fantastic value packages for DotNetNuke hosting. We also offer free asp.net web hosting
www.expressnet.com.au
Softech Development, Inc.
We help your business work smarter with DotNetNuke. Whether you need a new implementation, a custom module or skin for an existing implementation, or integration with your business processes, Softech has the experience and expertise to make it happen.
www.softechdevelopment.com

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