So ive created a module that uses a text changed event handler. In VS 2012 the code is without error. However when I try to use my module in DNN 7 i get the following error:
Error: is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: C:\inetpub\wwwroot\dotnetnuke\desktopmodules\testmodule\Main.ascx(72): error BC30456: 'TextBox1_OnTextChanged' is not a member of 'ASP.desktopmodules_testmodule_main_ascx'. ---> System.Web.HttpCompileException: C:\inetpub\wwwroot\dotnetnuke\desktopmodules\testmodule\Main.ascx(72): error BC30456: 'TextBox1_OnTextChanged' is not a member of 'ASP.desktopmodules_testmodule_main_ascx'. at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at DotNetNuke.UI.ControlUtilities.LoadControl[T](TemplateControl containerControl, String ControlSrc) at DotNetNuke.UI.Modules.WebFormsModuleControlFactory.CreateModuleControl(TemplateControl containerControl, ModuleInfo moduleConfiguration) at DotNetNuke.UI.Modules.ModuleControlFactory.LoadModuleControl(TemplateControl containerControl, ModuleInfo moduleConfiguration) at DotNetNuke.UI.Modules.ModuleHost.LoadModuleControl() --- End of inner exception stack trace ---
main.ascx has this:
Protected Sub TextBox1_OnTextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles TextBox1.TextChanged
main.ascx.vb calls it like this:
<asp:TextBox ID="TextBox1" runat="server" OnTextChanged="TextBox1_OnTextChanged" AutoPostBack="true"></asp:TextBox>
Anyone have a clue why its not seeing it?