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

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
Verndale
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  newbie question: getting tabid and portalsettings?
Previous Previous
 
Next Next
New Post 9/6/2007 7:42 AM
User is offline Ryan Peters
7 posts
www.tivilon.com
10th Ranked


newbie question: getting tabid and portalsettings? 

sorry for the dumb question, but can someone provide me with a few lines of c# that will get me access to the portalsettings object and view the tabid? what namespaces do I need? basically, i need the tabid of the current page and that's about it, but in c#. thanks!

ryan

 
New Post 9/6/2007 3:18 PM
User is offline Wolverine
144 posts
9th Ranked


Re: newbie question: getting tabid and portalsettings? 
Modified By Wolverine  on 9/6/2007 5:19:07 PM)

Hi Ryan,
  Are you writing a new module?
if so, you should be inheriting the "PortalModuleBase" class.

This class will set all of the values you need so you really don't have to call anything.

using "this.TabId" should get you the current tab id.  If that doesn't work for some reason, the object "PortalSettings" should already be set for you and you can use "PortalSettings.ActiveTab.TabId"  OR if for some reason that is not set (should be), you can get the Portal Settings with the Controller:
PortalSettings ps = PortalsController.GetCurrentPortalSettings();

Then using ps.ActiveTab.TabId should do it.

The first option should work, but if not there are a could more for ya.

Hope that helps!

 
New Post 9/8/2007 12:43 PM
User is offline Bassel Issa
55 posts
10th Ranked


Re: newbie question: getting tabid and portalsettings? 

hi Ryan,

do you know at what stage. the portalsettings get its value. i checked the proccess of the portal base page class. and also the portal controler. and i found that they are taking these settings and other global objects from:

HttpContext.Current.Items("xxxx") and casting these values into the suitable type like portalsttings but where and in wich vb file these items are filled and loaded. is there any httpmodule. if yes which one. is in at the authentication stage. ...??

thanks

 
New Post 9/8/2007 1:00 PM
User is offline Bassel Issa
55 posts
10th Ranked


Re: newbie question: getting tabid and portalsettings? 

hi all.

found the answer of my question.

since request has a URL rewriteing http module handler. i found that the portalsettings is re filled again in the event onBeginRequest

 

Dim _portalSettings As PortalSettings = New PortalSettings(TabId, objPortalAliasInfo)"PortalSettings", _portalSettings)

app.Context.Items.Add(

 

looks intereasting ;)

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  newbie question: getting tabid and portalsettings?
 


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.

 


DeutschNetNuke = DotNetNuke in German
DeutschNetNuke provides all DotNetNuke related services in German (and English).
www.DeutschNetNuke.de
The Standard in Senior Housing Information
SNAPforSeniors provides consumers with free online resources to assist them with their search for senior housing
www.snapforseniors.com
DotNetNuke Web Hosting w/ ASP.NET 3.5
Unlimited email boxes, Unlimited databases, Unlimited domains. Plans start at $4.97
www.MyWinHosting.com

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