This is a migrated thread and some comments may be shown as answers.

StyleSheetManager

3 Answers 97 Views
ScriptManager and StyleSheetManager
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 11 Jan 2010, 05:31 PM
Why am I not able to do this with the stylesheetmanager?
    <telerik:RadStyleSheetManager ID="ssm" runat="server" EnableStyleSheetCombine="true"
        <StyleSheets> 
            <telerik:StyleSheetReference Path="~/Apps/RTO/styles/rto.css"  /> 
            <telerik:StyleSheetReference Path="~/Apps/RTO/styles/popup.css" /> 
        </StyleSheets> 
    </telerik:RadStyleSheetManager> 

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 12 Jan 2010, 07:01 AM
Hi Steve,

Thank you for contacting us.

A stylesheet  file should be included as Assembly WebResource in order to be merged by RadStylesheetManager, please find more information about this here.

Greetings,
Yana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 13 Jan 2010, 01:49 AM
Why is that?  The Scriptmanager allows adding external .js files

Just curious more than anything...
0
T. Tsonev
Telerik team
answered on 13 Jan 2010, 03:36 PM
Hi Steve,

RadStyleSheetManager does not combine external files because of the many potential security issues that stem from using direct file access. External stylesheet references can also point to URLs and accessing them from the server is not desirable.

Our suggestion is to either merge them by hand (or with build script, for example) or embed them in an external assembly.

I hope this helps.

All the best,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
ScriptManager and StyleSheetManager
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Yana
Telerik team
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
T. Tsonev
Telerik team
Share this question
or