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