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  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

FCKeditor Project
Salaro -- Skins and more
OnyakTech
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.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Module Settings not retrieved
Previous Previous
 
Next Next
New Post 6/13/2008 2:41 PM
Unresolved
User is offline Rick
9 posts
10th Ranked


Module Settings not retrieved 

I have tried several different methods to get the TabModuleSettings for a module I am writing.  I know that they are getting written to the DB properly.  But, when I use Settings("Description") or any other method the count in the hashtable that should be containing the settings is 0.  There's just nothing there.  I'm using 04.07.00.  The project was originally in VS 2005 but I have upgraded it to 2008.  If I upgrade the DNN instance to 04.08.03 might that fix the problem?

 
New Post 6/13/2008 3:42 PM
User is offline Chris Hammond
2953 posts
www.engagesoftware.com
5th Ranked








Re: Module Settings not retrieved 

Is your module (user control) inheriting from PortalModuleBase?


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 6/22/2008 9:36 AM
User is offline Ryno
294 posts
9th Ranked




Re: Module Settings not retrieved 

Chris, I'm having the same issue.  I've got my Settings.ascx.vb to succesfully load/save to the TabModuleSettings database.  But in my view.ascx.vb file where I try to pull the value it keeps pulling NOTHING (ie "") from the table even though I know there is a value in there.  I use the line below and the view.ascx.vb does Inherit from Entitiies.Modules.PortalModuleBase in the "Public Partial Class"...

lblUnitInfo.Text = Server.HtmlDecode(CType(Settings("unitinfotemplate"), String)) 'always comes up as "" even though I know there is a value in the database


I use DNN version 4.8.1
 
New Post 6/22/2008 12:32 PM
User is offline Ryno
294 posts
9th Ranked




Re: Module Settings not retrieved 

The plot thickens.  I can pull the values of other module settings but not this one particular module setting.  In the code below, I'm able to pull "TPP_General" but not able to pull the value for "unitinfotemplate" even though I have verified in the database there is a value for both (it always shows up as empty "" for the unitinfotemplate value???:

lblUnitInfo.Text = CType(Settings("unitinfotemplate"), String)
lblUnitInfo.Text = CType(Settings("TPP_General"), Integer)


I use DNN version 4.8.1
 
New Post 6/22/2008 12:50 PM
User is offline Ryno
294 posts
9th Ranked




Re: Module Settings not retrieved 

I look in the TabModuleSettings table and there is an entry for both "unitinfotemplate" AND "TPP_General" and both have the same TabModuleID and they both have SettingValue strings in them (not empty strings).  And yet in the code above the two lines sit     RIGHT NEXT TO EACH OTHER         and yet one is able to pull data and the other is not??

It's errors like this that really make me angry


I use DNN version 4.8.1
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Module Settings not retrieved
 


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.

 


WDK Solutions
Quality modules for the DotNetNuke community. Check out our 'wild' modules!
wdkns.com
UK - DotNetNuke providers
UK providers of DNN module development and skin package design. Oxford Information Labs provides cost-effective solutions for businesses and organisations specialising in Skin design and bespoke module development.
www.oxil.co.uk
TronixSoft
Hosting for local businesses that want more from their websites.
www.TronixSoft.com

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