I'm experiencing a very odd behaviour, both starting with ChristoC templates (latest version for VS2012) or starting a project from scratch. I experience this strange issue and I tried everything but couldn't come up with a solution.
I inehrit in code behind from a basepage class I made, which in turn inherits from PortalModuleBase. Now in code behind i can successfully use LocalizeString(String) function but if I try to use the same function in .aspx with <%=LocalizeString("BasicSettings")%> I get this error "LocalizeString is not declared. It may be inaccesible..."
This is very odd since in code behind of the same page I can use it without issues.
Second problem I have is always in aspx code. I try to reference DNN controls to use them in the code that way:
<%@ Register TagPrefix="dnn" TagName="label" Namespace="DotNetNuke.UI" Src="~/controls/LabelControl.ascx" Src="~/controls/LabelControl.ascx" %>
Error: "....File Not Found".
If I switch the path from ~/ to ../../ it seems to work fine. PS. Removing Namespace="DotNetNuke.UI" gives another error.
Even in this situation I tested many things and read around but didn't come to a solution yet. In the project properties (Web Application) I set web option to use Local IIS set to http://dnndev.me/DesktopModules/MyModule and override application root URL set to http://dnndev.me
I really don't know what else to try and why I have such behavior. I can understand I could have such issues trying to start from scratch on my own, maybe overlooking some setting somewhere, but I'm having same issues with a fresh install of ChristoC templates.
Thanks in advance for your support