Mar 04, 2011, 1:40 PM
[CLOSED] [1.0] ResourceManager RenderStyles / RenderScripts
Hello,
I've noticed what I think is a bug with the ResourceManager. I want to disable the rendering of all Ext.NET JavaScript and CSS files, and instead compress and include them manually in two large files ("Application.js" and "Application.css").
I do this by setting "RenderStyles" and "RenderScripts" to "ResourceLocationType.None" on the ResourceManager, then register my files manually:
Thanks,
Dan
I've noticed what I think is a bug with the ResourceManager. I want to disable the rendering of all Ext.NET JavaScript and CSS files, and instead compress and include them manually in two large files ("Application.js" and "Application.css").
I do this by setting "RenderStyles" and "RenderScripts" to "ResourceLocationType.None" on the ResourceManager, then register my files manually:
opResourceManager.RegisterClientStyleInclude("Application", "~/CSS/Application.css");
opResourceManager.RegisterClientScriptInclude("Application", "~/JS/Application.js");
However when the page is rendered, the CSS include tag for "Application.css" isn't rendered. The JS include tag for "Application.js" renders fine. Is there a way of getting the CSS tag to render in this scenario?Thanks,
Dan
Last edited by Daniil; Mar 15, 2011 at 7:47 AM.
Reason: [CLOSED]