[CLOSED] [1.0] ResourceManager RenderStyles / RenderScripts

  1. #1

    [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:

    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]
  2. #2
    Hi,

    I should say that we are investigating the possibility to achieve your requirement.
  3. #3
    Hi Daniil,

    Thanks for the reply. Is there any update on this issue?

    Cheers

    Dan
  4. #4
    Hi,

    Well, None mode means that any resources rendering must be ommited (even icon styles). Therefore rendering js file in your case is bug (IMHO)
    I suggest to use 'opResourceManager.Page.ClientScript' or rendering resources via LiteralControl
    opResourceManager.Page.Header.Controls(new LiteralControl("<link href='...' />"));

Similar Threads

  1. [CLOSED] renderScripts="File" renderStyles="File" adding extra '/'
    By SouthDeveloper in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Nov 24, 2011, 12:23 PM
  2. [CLOSED] Asp Substitution with Ext ResourceManager
    By SouthDeveloper in forum 1.x Legacy Premium Help
    Replies: 9
    Last Post: Nov 16, 2011, 4:23 PM
  3. [CLOSED] bug in ResourceManager.ApplicationName
    By pil0t in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 17, 2010, 3:09 PM
  4. [CLOSED] [1.0] ResourceManager issue
    By randy85253 in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Oct 29, 2009, 11:45 AM
  5. [FIXED] [V0.7] RenderScripts
    By _Eduardo_c_ in forum Bugs
    Replies: 1
    Last Post: Nov 09, 2008, 11:38 PM

Posting Permissions