How to reference own web config setting from custom module?
If I add a connectionstring to a non-DNN database in the dotnetnuke web.config
<add key="connectionString" value="Server=localhost;initial catalog=DNN_PAsFromVideo; Trusted_Connection=Yes" />
<add key="strconnstrSP" value="server=DevServer;initial catalog=unrelatedDatabase; Trusted_Connection=Yes" />
How can I reference this from a custom module?
In Components/Global.vb there is the following function
Public Function GetDBConnectionString() As St...Customize the published web.config file in a web app
We are a team developing an ASP.Net web app. We are facing the following situation: each development machine needs a slightly different web.config file. For example,each local developer machine.the continuous integration server.the open sandbox website.the production website.How do I customize the published web.config (through MSBuild for ex.). Does anyone has an idea on the matter? Thanks in advance,Joanneshttp://www.lokad.com
One possible solution is:
- select one Web.Config (I usualy select development one) as a starting point
- create XSLT files for any other Web.Con...Customize RSS Module? or a custom module?
I would like for example that the rss module extracts info from different rss feeds on my page. but in a customized way
For example the last article, the last new, the last event.
To avoid upgrade issues consider creating a custom module.
I havent realy checked th rss module but isnt the features you want replicated by a custom xsl file. Or you could check out the other rss modules that are out there
It is possible in xsl to extract info from different xml
<xsl:value-of select="document('http://www.asp.net/Forums/rss.aspx?forumid=90')/channel/tit...Web.Config and App.Config has key that refers to a file in a parent directory ? How To?
<add key="AccountSettingsFile" value="../../../Config/Accounts.Config"/>Don't ask my why but I need to do this and the above doesn't work.How do I refer to "Account.Config" that is in Folder "Config" which in turn is two directories up.Thanks....Need to put this in a web.config file. Transfer a collection from app.config to web.config.
<!--<setting name="Groups" serializeAs="Xml">
<string>GL CA Corporate Data</string>
<string>GL CONT Contractors</string>
<string>GL IT SolutionDelivery</string>
I need to put this in the below web.config.<?xml version="1.0"?><!--
Note: As an alternative to hand editing this fi...sub modules, loading custom modules into a parent module
GreetingsI am creating a support system module which will require the ability to add sub modules. For example, there is an admininstrators section in which suport requests are administered, anwsered, solved etc.There is to be another function in the admin section of the support module in which admins can upload a new support form template module, ie, say an admin wants to set up a form for users to lodge a request for new hardware, the form will display all required fields, graphics, validation etc for that request. Another support form template might be to have a new user set up on the acti...Module in Module
Is there a way to place a module inside another module (e.g. A feedback module inside a Text/HTML module) ?
There is a way to inject controls into a module dynamically based on some criteria like a querystring parameter - is that what you are wanting to do?Dylan Barberread my stupid blog http://codemypantsoff.com
There's a commercial module "wrapper" on Snowcovered that is designed to hold other modules. So it is possible.I don't know if you could put a module holding a module inside a module containing a module, but I wouldn't try. The entire space-time...modules, modules
This site appears to be the most comprehensive list of free custom modules:
Any other sites? I do like how Rainbow gives you a bucket of them - saves a lot of time over having to snoop around and find some of the DNN ones. Is there also a way to list modules as "certified"? Also - is there a decent repository of skins?
I have recently installed version 2.0. Sure wish there were more modules ready for it! That would make it much easier to evaluate the program and give recommendations to my boss.
The reason there aren't more 2.0 modules yet is becasue it h...Http handlers and Http modules
What are some of the best and common scenarios where Http handlers and Http modules can be usefully used?
ASP.NET uses the handlers for processing aspx, asmx and other files. How can you use it? Well let us say if you want to create a file with a new extension, you will need to write a handler for it. Moreover they are the earliest point where you can access requests. Moreover they being portable makes them all the more powerful.
ASP.NET uses modules for services like session manage...Optimized VS.Net Solution for custom modules + free modules
I like to leave the DNN core code untouched when I do my module development. Also, I like to work with a clean VS.Net solution which has my custom modules and none of the core projects. After playing around with it for some time, I have created a VS.Net Solution that allows me to do exactly that and I would like to share it with anyone interested. It's called "My Modules" and can be used to develop/debug DNN modules without requiring any core project references.
I have blogged about my solution in detail and also posted it for download. In the download package, I have also inclu...Integrating a custom module or any module into .net nuke with vis. dev. express
Ok I am using .net nuke and visual web developer 2005 express edition. I am new to both.
My problem is this...dotnetnuke is installed and working great and I
have made changes and used the default modules for various pages on my
new site. However, now I have reached the stage where I need a
module template where I can use asp.net to write my own code to
I cannot for the life of me, figure out how to incorporate a new module
into the site. I copied a module folder that I downloaded called
createmoduletemplate into my DesktopModules directory.&nbs...getting an Error when refering an external config file from web.config file
am getting an Error when refering an external config file from web.config file, code isYourSettings.config<appSettings > <add key="KeyToOverride" value="Overridden" /> <add key="KeyToBeAdded" value="EntirelyNew" /> </appSettings>andweb.config <appSettings file="YourSettings.config"> <add key="KeyToOverride" value="Original" /> <add key="KeyToNotOverride" value="Standard" /> </appSettings> and in code behindstring str = System.Con...getting info from custom web.config for module
I've been working on modifying an existing custom module that we've written to make it more flexible during deployment and am having some issues with the vagaries of inheritance of config files through the application folder tree.
I have created a custom web.config file in my DNN module folder under desktop modules that contains custom configuration information for the module so that we do not have to modify DNN root web.config when rolling the module out. During page load, I request information from a custom section in the DNN module web.config via the NameValueSectio...Going from one Custom Module to Another Customer Module
I am having trouble going from one module to another module.
My source module contains a calendar user control (Brainjar's better
calendar). In the day_render event of the calendar control, I add
a label to each day and set the text property to an href tag:
<a title="Drinks with John"
I am trying to leave the module with the calendar to go to another
module's view control. This link takes me to the view control of
the new mod...