Hi there,
I'm using:
Visual Studio 2010
AJAX Q2 2011 2011.2.712.35 (Bin35)
I use the RadScriptManager to include all my CSS - I'm successfully including my own stylesheets, as well as a custom skin:
(web.config)
(Base.Master)
However, when I do something like this (these classes apply background images to the elements):
(index.aspx)
I get the following 404 errors (via Chrome's error console):
GET http://localhost:411/images/ui-bg_glass_45_0078ae_1x400.png 404 (Not Found)
GET http://localhost:411/images/ui-icons_e0fdff_256x240.png 404 (Not Found)
The files in question exist in http://localhost:411/_Resources/CSS/start/images/, and they're referenced correctly by the JQuery UI CSS file:
(_Resources/CSS/start/jquery-ui-1.8.15.custom.css)
If I include the CSS outside of the StyleSheetManager:
(Base.Master)
then things work as expected. I don't seem to have problems with background-image URLs in my other included CSS files.
Any ideas?
Thanks,
Rob
I'm using:
Visual Studio 2010
AJAX Q2 2011 2011.2.712.35 (Bin35)
I use the RadScriptManager to include all my CSS - I'm successfully including my own stylesheets, as well as a custom skin:
(web.config)
<
add
key
=
"Telerik.Web.UI.StyleSheetFolders"
value
=
"~/_Resources/CSS/"
/>
<
add
key
=
"Telerik.Skin"
value
=
"IntranetSkin"
/>
<
add
key
=
"Telerik.EnableEmbeddedSkins"
value
=
"false"
/>
<
add
key
=
"Telerik.EnableEmbeddedBaseStylesheet"
value
=
"false"
/>
(Base.Master)
<
telerik:RadStyleSheetManager
ID
=
"RadStyleSheetManager1"
runat
=
"server"
EnableStyleSheetCombine
=
"true"
>
<
StyleSheets
>
<
telerik:StyleSheetReference
Path
=
"~/_Resources/CSS/base.css"
/>
<
telerik:StyleSheetReference
Path
=
"~/_Resources/CSS/start/jquery-ui-1.8.15.custom.css"
/>
<
telerik:StyleSheetReference
Path
=
"~/_Resources/CSS/styles.css"
/>
<
telerik:StyleSheetReference
Name
=
"Telerik.Web.UI.Skins.Menu.css"
Assembly
=
"Telerik.Web.UI"
/>
<
telerik:StyleSheetReference
Name
=
"Telerik.Web.UI.Skins.Grid.css"
Assembly
=
"Telerik.Web.UI"
/>
</
StyleSheets
>
</
telerik:RadStyleSheetManager
>
However, when I do something like this (these classes apply background images to the elements):
(index.aspx)
<
div
class
=
"ui-state-default ui-corner-all"
>
<
span
class
=
"ui-icon ui-icon-circle-zoomin"
></
span
>
</
div
>
I get the following 404 errors (via Chrome's error console):
GET http://localhost:411/images/ui-bg_glass_45_0078ae_1x400.png 404 (Not Found)
GET http://localhost:411/images/ui-icons_e0fdff_256x240.png 404 (Not Found)
The files in question exist in http://localhost:411/_Resources/CSS/start/images/, and they're referenced correctly by the JQuery UI CSS file:
(_Resources/CSS/start/jquery-ui-1.8.15.custom.css)
.ui-state-default .ui-icon { background-image: url(images/ui-icons_e0fdff_256x240.png); }
If I include the CSS outside of the StyleSheetManager:
(Base.Master)
<
link
type
=
"text/css"
href
=
"~/_Resources/CSS/start/jquery-ui-1.8.15.custom.css"
rel
=
"Stylesheet"
/>
then things work as expected. I don't seem to have problems with background-image URLs in my other included CSS files.
Any ideas?
Thanks,
Rob