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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStoredebugging the store moduledebugging the store module
Previous
 
Next
New Post
1/31/2007 5:13 PM
 

Hey all,

Does anyone know how to add the code behind to the store module?  I want to be able to debug and step into the code.  When I try to add an event handler to the code behind it place the event in the aspx page.

Does anyone know when the next release for the store module is coming out?  Thanks.

 
New Post
2/2/2007 11:11 PM
 

I answered this pretty thoroughly in this thread: Modified store installation free to download (with updated DNN 4 / ASP.NET 2.0 source provided).

I have run into all sorts of problems in that the webcontrols module appears to need to be re-written as a native DNN 4 module, apparently there is now way around having a class in code behind file with the partial attribute being compiled into two separate assemblies. I have spent hours and hours on this problem and haven't found a good solution. In order to get any of the benefit of the enhanced VS.NET 2005 ide, asp.net pages must be built using the partial class method, and the upgraded store module is in legacy mode which means that the designer thinks all code is inline code...

Anyone find a workaround to this problem?

-Kenneth S. Courtney
http://aciasoftware.com

 
New Post
2/6/2007 12:35 PM
 
Thanks for the info.  I'll take a closer look at your thread.
 
New Post
2/6/2007 4:01 PM
 

I am currently working on a new solution structure which should enable the best of all worlds with regard to building and debugging the Store Module. I have seen this referenced in several other articles regarding development of C# modules in DNN core, although (provided I get it working) my version will enable the use of the designer, partial classes, etc.

I have written in several other threads regarding the hurdles I ran across as I attempted to get Allan Thompson's web warehouse module running (to be honest, other than conversion to DNN 4, I couldn't see where he did that much else, but he did upgrade the module to .NET 2.0). Specifically, when I attempted to convert the ascx files to use the new codebeside model of .NET 2.0, I ran into a problem where the class for the page would get compiled into both the Module's assembly (I was using WAP for both DNN & the WebControls module) and another app_code_12312.dll in the ASP.NET in the Temporary ASP.NET Files directory. I tried all sorts of workarounds, and finally got a solution that would enable the use of the partial class in compiling and stepping through the module, however, I had to manually delete the codebeside attribute from the page directive to eliminate the error caused by the missing .cs file.

Thus, I have started a new solution, removing the BuildSupport Project, and the C# DotNetNuke WAP, and the WebControls project. I removed all of the Store Module's various provider projects from the DotNetNuke path (they reside in a directory outside of the path, and a post-build event copies the various resources into the directories (this legacy from DNN 3 or 4 or WWStore I don't know who added these, but they work), leaving the Core DotNetNuke.WWStore.WebControls resource and source code files in place, but removing all other source files below it (to prevent double compilation: the ascx files for the tax, address, & shipping providers won't cause compilation errors because they use the codebehind page directive, which doesn't do anything regarding page compilation.).

Next, I deleted the (wwstore) module's DLL's from the DotNetNuke bin directory, opened the DotNetNuke project as a Web Project (not Web application project, also note I had to delete the forum subdirectory from DesktopModules because of compilation error there), and added a reference to all of the Provider Projects (which is where I am right now) and I think I am down to three compilation errors dealing with the providers calling a method from their respective parent control in the WebControls project, which they can no longer (and should never have in the first place) reference since they live in a web project that can't reference the module's WAP (because of double/ambiguous references).

I am going to fix these errors by first removing the reference to the webcontrols project in the provider projects (taxprovider, ShippingProvider &  another provider), then adding a public event (Expanded) to each of these which they can raise when appropriate, and the parent can trap the event and react accordingly. Once this is done, I am hopeful I can convert all of the web user controls in what was the Web Application Project into codebeside, thus finally being able to take full advantage of the Visual Studio.NET 2005 IDE Designers in the module.

-Kenneth S. Courtney

 

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStoredebugging the store moduledebugging the store module


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