Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesLoadSetting not in a page but from dllLoadSetting not in a page but from dll
Previous
 
Next
New Post
11/9/2011 11:33 AM
 
Hi, I'm developing a service that need to load specific settings knowing TabId and ModuleId
Private ReadOnly Property SettingsControl() As ISettingsControl Get Return TryCast(_control, ISettingsControl) End Get End Property
 Private _control As System.web.ui.Control
Public Shared Function GetMyModuleSettings(ByVal _tabID As Integer, ByVal _moduleID As Integer) As MyModule.Entities.Settings
         Dim _module As ModuleInfo
         Dim _moduleCtrl As ModuleController = New ModuleController()
         Dim _objModuleControlInfo As ModuleControlInfo
         _module = _moduleCtrl.GetModule(_moduleID, _tabID, False)
         _objModuleControlInfo = ModuleControlController.GetModuleControlByControlKey("Settings", _module.ModuleDefID)
  End Function

Now for finish my function I need to load my control and then loadsetting, but the problem is that for loadcontrol need of page istance and I'm not in a page.
How I can load the conrol required to loadsettings call?
Try to explain better. In a normal use the missing code before End Function to solve my problem would be:
_control = ControlUtilities.LoadControl(Page, objModuleControlInfo.ControlSrc);
 SettingsControl.LoadSettings();

But in my contest I have no Page available because my code is into one DLL.
Thanks for any help!
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesLoadSetting not in a page but from dllLoadSetting not in a page but from dll


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out