469,609 Members | 2,231 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,609 developers. It's quick & easy.

Embedding WebResources: multiple images in folder


i am embedding System.Web.UI.WebResources in my C# Class via:
[assembly: System.Web.UI.WebResource("ExtJS.yui-ext.css", "text/css")]

I use this resource with:

Page.Header.Controls.Add(new LiteralControl("<link href='"ExtJS.yui-
ext.css"' rel='stylesheet' type='text/css' />"));

The css file is embedded fine into my website, but it does not detect
the images in my folder 'ExtJS.images'

I am refering to the images in the CSS file like this:

.extjs{background:#fff url(<
%=WebResource("ExtJS.images.default.form.text-bg.gif")%>) repeat-x 0
But this does not work. What do I do wrong?
Do I have to register the images as WebResources in the same way I
registered the css file ([assembly:
System.Web.UI.WebResource("ExtJS.yui-ext.css", "text/css")]) too?
If yes... where and how?
And another question...
Its not very clear to my why I have to register the WebResources as
assembly. Does it have any special reason?

Jan 16 '08 #1
0 1248

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Tank | last post: by
1 post views Thread by Larry Marburger | last post: by
10 posts views Thread by Adrian | last post: by
18 posts views Thread by J-T | last post: by
reply views Thread by Solution2021 | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.