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...Getting StartedGetting StartedTroubles with creating a WAP moduleTroubles with creating a WAP module
Previous
 
Next
New Post
1/30/2012 9:43 PM
 

Hi,

I am having some issues creating a WAP module. I have built modules as a website project before but this is my first time as a WAP. The problem I am currently having is that my code behind is not being executed at all. I have backed down to barebones to try to get it to work so my View.ascx looks like this:

<%@ Control language="C#" Inherits="DotNetNuke.Modules.QuestList.View" AutoEventWireup="false"  Codebehind="View.ascx.cs" %>
<asp:Label ID="test" runat="server"></asp:Label>

and the codebehind is like this:


using System;
using DotNetNuke.Services.Exceptions;
using DotNetNuke.Entities.Modules;
using DotNetNuke.Entities.Modules.Actions;
using DotNetNuke.Services.Localization;
using DotNetNuke.Security;
using System.Web.UI;
using System.Collections.Generic;
using System.Reflection;
using System.IO;
using System.Data;
using System.Data.SqlClient;

namespace DotNetNuke.Modules.QuestList
{
    public partial class View : QuestListModuleBase, IActionable 
    {


        #region Event Handlers


        override protected void OnInit(EventArgs e)
        {
            InitializeComponent();
            base.OnInit(e);
        }


        private void InitializeComponent()
        {
            this.Load += new System.EventHandler(this.Page_Load);
        }

        private void Page_Load(object sender, System.EventArgs e)
        {

test.Text = "This is a test";

}

I could be applying the update incorrectly, as I cant find any information on how to update a WAP module, I am just changing the version number in the QuestList.dnn file and then in the website going Host-> Exetensions -> Create New Module -> From Manifest and then selecting the .dnn file.

Does any one have any ideas as to what I might be doing wrong?

Thanks,

Chris

 
New Post
1/31/2012 8:52 AM
 

Here are a couple of things to check:

1. After building the project code, is the module's assembly (dll file) getting placed into the test site's /bin folder?

2. Does your base class QuestListModuleBase inherit from DotNetNuke.Entities.Modules.PortalModuleBase or implement the DotNetNuke.UI.Modules.IModuleControl interface?

Note: Once you have registered the module definition using Host --> Extensions you do not need to update the version each time you make a change to the code.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
1/31/2012 12:53 PM
 

William,

I think it was the bin problem, it was being put in the DesktopModules/Bin folder because of a relative path of ../../bin, it should have been ../../../bin

I changed this and the stuff I was looking for showed up.

Thanks!!

for updating, if I make changes then rebuild the solution, then refresh the test site the changes should show up?

Chris

 
New Post
1/31/2012 3:05 PM
 

I'm glad that helped!

Whenever an ASP.Net's /bin folder has a change made to it's contained assembly files, the web application will be forced to restart - so, after you have rebuilt your module's code you should be able to simply refresh the page containing your module. Note, however, if you make changes to javascript, css classes, etc. you should do Shift (F5) refresh to make sure that the most recent changes are being loaded from the server, not the old ones still in the browser cache.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedTroubles with creating a WAP moduleTroubles with creating a WAP 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