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  |  

The best choice for your web site host, email hosting, and domain registration.
  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

Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
The best choice for your web site host, email hosting, and domain registration.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  How to get PortalSettings?
Previous Previous
 
Next Next
New Post 7/8/2008 2:19 PM
User is offline Artek
5 posts
10th Ranked


How to get PortalSettings?  

Hello

I need to get CurrentUserID, CurrentUserID IsSuperUser property and AdministratoRoleName.

How i can get this values from PortalSettings in class without PortalModuleBase?

I got only PortalID.

 
New Post 7/8/2008 4:21 PM
User is offline William Severance
787 posts
www.wesnetdesigns.com
7th Ranked






Re: How to get PortalSettings?  

I finally found the thread where I had answered a similar question a few months back:

http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/111/threadid/210302/scope/posts/Default.aspx


Bill, WESNet Designs
 
New Post 7/9/2008 7:15 AM
User is offline Artek
5 posts
10th Ranked


Re: How to get PortalSettings?  

Thanks, but this did not help me

DotNetNuke.Entities.Portals.PortalController.GetCurrentPortalSettings returns null

also HttpContext.Current.Items["PortalSettings"] is null.

I got only PortalID, someone can help me?

 
New Post 7/9/2008 10:11 AM
User is offline William Severance
787 posts
www.wesnetdesigns.com
7th Ranked






Re: How to get PortalSettings?  

Can you explain a bit more about your situation? Are you trying to obtain PortalSettings in a utility class being instantiated in a DNN module control/ or in a class - totally outside of a DNN page request? If the latter, then the current UserID, current PortalSettings object, etc. will be undefined.


Bill, WESNet Designs
 
New Post 7/9/2008 1:32 PM
User is offline Artek
5 posts
10th Ranked


Re: How to get PortalSettings?  

The second situation - class totally outside of a DNN page request, but i got current System.Web.HttpApplication.

One public class inheriting from System.Web.IHttpModule and one from System.IO.Stream.

DotNetNuke version: 4.8.4.

 

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  How to get 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.

 


Faculty of Graduate and Postdoctoral Studies
At the graduate level, the University of Ottawa offers more than 180 graduate certificates, master's degrees and PhDs, as well as interdisciplinary programs such as Women's Studies and Canadian Studies. Many postdoctoral opportunities are available in both the sciences and the humanities. For further information, please consult the site of the Faculty of Graduate and Postdoctoral Studies.
www.grad.uottawa.ca
Vekkin Solutions
Vekkin Solutions provides complete website solutions and custom module development to churches and small businesses.
www.vekkin.com
Powered by Adcuent®.Com
Adcuent® Consulting & Technology offers custom development web applications and hosting projects under the brand of Powered by Adcuent®.Com
www.adcuent.com

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