473,399 Members | 2,159 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Embedding WebResources: multiple images in folder

Hello,

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
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...
It´s not very clear to my why I have to register the WebResources as
assembly. Does it have any special reason?
Regards,

Martin
Jan 16 '08 #1
0 1377

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Tank | last post by:
I have had this post up here when i was trying to figure out how to make leading zeros and have been able to fudge that to work. I am now have trouble getting the loop that makes the folders to...
6
by: theo.bruening | last post by:
Hello all. I hope someone can help me here. I need to make a db on many pictures, however, if I OLE them, the access database grows hugely. If I only hyperlink them, I can't view them. is there...
1
by: Larry Marburger | last post by:
I've built an XSLT that is used to generate a simple TreeView-type, web-based control (ASP.NET / C#). When the tree is fully transformed (client-side, JavaScript transformation), there are about 5...
10
by: Adrian | last post by:
I have a really newbie question... I developed an asp.net application. By default, it was created here: c:\inetpub\wwwroot\ Now, I wanted to create another application, completely independent....
18
by: J-T | last post by:
Hi All, There is a picture on the following URL which I want to have it in one of my asp.net pages .I mean I want to embed the content of this page in my own page and get its image.Is there a...
5
by: jcrouse | last post by:
How do I embed my bannerbitmap for the dialog boxes in the installer package. Also the ico file for the shortcuts? Thank you, John
3
by: RobertS | last post by:
I'm trying to figure out what I need to do to configure IIS 5.1 on XP Pro to work when referencing WebResources.axd. For example, I have an aspx script that works fine when run from Visual Web...
14
w33nie
by: w33nie | last post by:
What I'm trying to do here, is upload a video to the ../video/ folder, and up to 5 images to the ../images/ folder. As well as the database information like title, content and each file's file...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.