If you add keys to the appsettings section of the DNN site's web.config, you can retrieve them using:
DotNetNuke.Common.Utilities.Config.GetSetting("settingname");
However, it is a better practice, and makes sense in this case to create a Settings
control in your module and to store the information there.
You do this by creating an ascx control that inherits from DotNetNuke.Entities.Modules.ModuleSettingsBase
and stores settings in the base Settings Dictionary for you module.
Your other module view controls can access the settings via a similar Dictionary
object called Settings
that is part of the ModuleUserControlBase
class.
For an example of how to use module settings, check out this DNN7 tutorial video and article. A sample project with all the code is in the Related Files section of the article.