I'm starting module developing and I'm facing two issue.
First one is using Christoc template. It seems that trying to use <% = Localize("string") %> in the ascx code doesn't work, while using it in the code behind for that same control works. This may make some sense in that the function is defined in the base class this control inherits from (well there is a little base class chain involved really PortalModuleBase > MyModuleBase > ActualControl
So maybe while code behind "knows" where the control inherits from, the ascx part of the code doesn't. I tried with CodeFileBaseClass attribute in the control declaration, setting it to MyModuleBase, but that didn't work as well. Any hint to use the properties and function of PortalModuleBase directly in my ascx code?
Second issue is a curious one. I'm trying to set my module dev myself, without the template, without packaging and any bonus stuff already in there. A bare bone module development. The strange thing is that.. I reference the DotNetNuke.dll but when in the project properties I set the directories for the Servers to http://dnndev.me/DeskotpModules/mymodule and then override for the base application to http://dnndev.me/ I got this error in the control definition (ascx code part) which gets green underlined in visualstudio "Namespace or type defined in the imports "DotNetNuke.UI' doesn't contain any public member or cannot be found..."
If instead I switch the server in project property to use visual studio development server, everything works BUT of course I cannot reference dnn root with ~ for adding dnn controls in the ascx code.
Odd thing this doesn't happen with Christoc template which correctly uses IIS, but I copied the very same settings in my bare bone project.