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  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

Click here to go to dev.live.com for Windows Live developer resources
SteadyRain
DataSprings - Great Ideas. Always Flowing.
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.
 


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
29 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
2502 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
43 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
2502 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
43 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.

 


Bring2mind
Document Centric DNN Module Solutions
www.bring2mind.net
WEBPC™ DotNetNuke® sites for Small Business
WEBPC™ are internet consultants and web hosters catering to the small business market.
www.webpc.biz
Perpetual Motion Interactive Systems Inc.
A solutions company specializing in Microsoft enterprise technologies.
www.perpetualmotion.ca

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