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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...ConnectionStringConnectionString
Previous
 
Next
New Post
2/28/2013 2:56 PM
 

I'm new to DotNetNuke, so please be gentle with me...  :-)

I'm not sure if the functionality is supposed to work this way, but if it is, I can't figure it out.

Of course there is the DotNetNuke database, but there is also another database where we keep all the data the web pages are to display (we call it the project controls db).  When adding a new template or form, there is a drop down labeled "Data Source" which lists theDotNetNuke Database and an option for an "External Database", which is what I select, then type in the connection string, load the tables, etc.  To do this for every template (and form) for every page is not only tedious (I have to remember the connection string and type it without fat-fingering) but when we move the test site to production, we have to go through and retype all the connection strings on all the form and template files.

There is a file called web.config which is supposed to be the central clearing house for such things as the connection string.  Looking at it via the "Host"/"Configuration Manager", I can see the connection string for DotNetNuke which (I presume) appears in the drop down in the new template dialog.  I added the connection string for our project controls db, but it does not appear in the drop down.

So, here's my questions...
1. Is it true that the better option (and is supported by DotNetNuke) is to create a connection string in web.config?
2. Presuming that #1 is true, how do I get the connection string (which has the name="PCDB") to appear in the drop down?
3. Presuming #1 is true, but the PCDB is not intended to be added to the drop down, how do I reference it in the templates and forms?

TIA

 
New Post
3/1/2013 7:17 AM
 
Clif,

1. This is the case with .net web apps. I recommend always putting your connection string in the web.config file.
2. That I don't know since I'm unsure what process you're using.
3. Is this process custom built? If so, you can add your connection string to the web.config file and reference it directly in your module and that would the problem.

Mark
 
New Post
3/1/2013 1:52 PM
 
Sorry, I was referring to XMod Pro (when referring to templates and forms). The two are kind of seamless and it's hard to remember where one stops and the other begins. :-)

As I said, I'm a newbie at this.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...ConnectionStringConnectionString


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