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

HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...connect to DNN Datase using DNN codeconnect to DNN Datase using DNN code
Previous
 
Next
New Post
12/11/2012 6:02 AM
 

I have a web service I need to connect to my DNN databse and get the tabs information..Im using DNN dll and i cant still connect to the databse..and my ultimategoal is to delete tabs using DNn code..not using direct sql..

 
New Post
12/11/2012 9:05 AM
 
if you are on DNN 7, have a look into new WebAPI, which provides you with an easy option to provide a secure web service for your purpose. Have a look at the blog posts by Scott Schlesier on this site.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
12/11/2012 10:12 PM
 

I'm using DNN 6.2 how was it..from my web service I need to run this type of code as a example: 

ontroller tabController = new TabController();
                TabInfo ff= tabController.GetTabByName("MyPage", 0);


but problem is how to connect to the DNN db for achive this..


 
New Post
12/12/2012 3:33 AM
 
you do not need to connect to DNN database, your webservice needs to be part of a DNN module and use DNN security and object model, e.g. you may access tabs collection from current context.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
12/12/2012 10:51 PM
 

I think I make you confuse,its like this..I have a windows form application and it communicate to a web-service and it using the dotnetnuke dll only..the web service is not a DNN site its just referenced the DNN dll..I think you got my point..

So I have a separate DNN database (of a nother site) and need to get data to the windows form application via this web service..So I think the DNN database need to connect to the web-service via using this DNN dll..or something...

SO that the scenario I need to get done

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...connect to DNN Datase using DNN codeconnect to DNN Datase using DNN code


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