stylesheetmanager can't add css from code behind

2 posts, 0 answers
  1. DotnetShadow
    DotnetShadow avatar
    5 posts
    Member since:
    Sep 2011

    Posted 28 Jan 2014 Link to this post

    Hi there

    I'm trying to add a css file from code behind but I notice that I get this error:

    Skipped loading 1 invalid resource.

    Dim stylesheetItem As StyleSheetReference = New StyleSheetReference()
    stylesheetItem.Path = "~/App_Themes/test.css"
    StylesheetManager1.StyleSheets.Add(stylesheetItem)

    On my master theme I got:
      <telerik:radstylesheetmanager ID="StylesheetManager1" runat="server" EnableStyleSheetCombine="true">
            <StyleSheets>
                <telerik:StyleSheetReference Path="~/App_Themes/common.min.css" />
            </StyleSheets>        
        </telerik:radstylesheetmanager>

    Can stylesheets be added from code behind?

    Regards DotnetShadow
  2. DotnetShadow
    DotnetShadow avatar
    5 posts
    Member since:
    Sep 2011

    Posted 28 Jan 2014 in reply to DotnetShadow Link to this post

    edit: Found issue, it was a casing issue, had uppercase letters in the filename
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top