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 ExtensionsModulesModulesCall methods from a shared code behind fileCall methods from a shared code behind file
Previous
 
Next
New Post
6/29/2015 11:43 AM
 
I'm building custom modules using AJAX calls to WebServices. What I have is working fine - the module begins as a .ascx file with a .ascx.cs code behind file which loads the .js file (client side script) and the .asmx file (server side WebServices). For more details on what exactly I'm doing here, check out the tutorial by Michael Washington - http://www.adefwebserver.com/dotnetnukehelp/Misc/Dotnetnuke_AJAX_webservices.htm

So, I'm trying to extend those methods a bit by creating some shared resources. I have several modules with several controls each. I was able to easily add multiple client side .js files to the modules so that I could put common functions and properties in one place and have module specific code in another.

Here is where I am stuck. I cannot figure out how to do that on the server side. I want to put common server side script into a single shared file so that the WebServices in each control's .asmx file can call them but nothing I've tried is working.

Thanks in advanced to anyone who can help me!
 
New Post
6/29/2015 12:11 PM
 
Put them in a DLL, add a reference to the library.

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
6/29/2015 12:21 PM
 
Is there any way to do it without a compiled DLL? I like the flexibility of keeping the files as source - easier to edit and debug on the fly.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesCall methods from a shared code behind fileCall methods from a shared code behind file


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