1. In reference to the right resources in DNN. (Reference from m2land 's blog)
Because DNN operating mechanism is that all the pages are dynamically generated in the DEFAULT, so there will be some problems on the resource location. However, these are DNN we take into account the
In PortalModuleBase base class, there is a ModulePath property, use this attribute can be dynamically generated resources corresponding path, and we should simply say, after the resource name on it.
The final code is as follows:
<
img
src
=”<%=
ModulePath %
>
CompanyLogo.gif” alt = “your alt” />
Reproduced in: https: //www.cnblogs.com/tufan/archive/2009/05/06/1450523.html