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  |  

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


  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Question on discovering current tab id, current module id...
Previous Previous
 
Next Next
New Post 5/6/2008 8:08 AM
User is offline andyah
30 posts
10th Ranked


Question on discovering current tab id, current module id... 

Hey guys and gals.  I am trying to discover the current page id and module id, have scoured the docs and api, but can't find the answer anywhere.  Specifically, I am trying to find out how to get the current page id, and the current module id, from inside the module code, and also from inside provider code (like if I added a new text provider or caching provider). 

Any help would be truly appreciated.  This used to be easy for me to find, but I haven't been coding dnn for a while, and I am completely stumped.  Used to be that inside a module, Me.ModuleId (or something simple like this) did the trick...for modules anyway...

 

 
New Post 5/6/2008 8:41 AM
User is offline Chris Hammond
2733 posts
engagesoftware.com
5th Ranked








Re: Question on discovering current tab id, current module id... 

If you have your modules inherit from PortalModuleBase, then you can use Me.ModuleId or Me.TabId.


Chris Hammond
Engage Software
St. Louis, MO
314.966.4000


The leading provider of DotNetNuke skinning, training and custom module development.
Official DotNetNuke® Training Provider
 
New Post 5/6/2008 10:13 AM
User is offline Snoek8
49 posts
www.mexmax-internet.com
10th Ranked


Re: Question on discovering current tab id, current module id... 

You can also use PortalSettings.ActiveTab.TabID

Stephan
http://www.mexmax-internet.com

 
New Post 5/6/2008 12:02 PM
User is offline Chris Hammond
2733 posts
engagesoftware.com
5th Ranked








Re: Question on discovering current tab id, current module id... 

To get to PortalSettings though will take a little more work though.

What we do in our module development, and in our training classes, is create a baseclass for our module, all our usercontrols inherit from that class. That baseclass inherits from PMB allowing us to get to all the DNN information, as well as our own custom information.


Chris Hammond
Engage Software
St. Louis, MO
314.966.4000


The leading provider of DotNetNuke skinning, training and custom module development.
Official DotNetNuke® Training Provider
 
New Post 5/6/2008 4:14 PM
User is offline Snoek8
49 posts
www.mexmax-internet.com
10th Ranked


Re: Question on discovering current tab id, current module id... 

I agree. We use the Portalsettings method when creating skincontrols which inherit from SkinObjectBase.

Stephan
http://www.mexmax-internet.com

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Question on discovering current tab id, current module id...
 


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.

 


PointClick.Net DNN Solutions
DotNetNuke Hosting Platform for Business and personal use.
PointClick.Net Hosted Solutions
Advanced Web Portals by Infoscaler
Infoscaler is a California based company that provides advanced Web Portals, E-commerce Sites, Database Applications and Intranet Solutions on the DotNetNuke and Microsoft.NET platforms.
www.infoscaler.com
DotNetNuke® in Sweden
All service of DotNetNuke® in Sweden.
Olsmar Konsult

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