473,785 Members | 2,249 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Embedding WebResources: multiple images in folder

Hello,

i am embedding System.Web.UI.W ebResources in my C# Class via:
[assembly: System.Web.UI.W ebResource("Ext JS.yui-ext.css", "text/css")]

I use this resource with:

Page.Header.Con trols.Add(new LiteralControl( "<link href='"ExtJS.yu i-
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{backgrou nd:#fff url(<
%=WebResource(" ExtJS.images.de fault.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.W ebResource("Ext JS.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 1393

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

Similar topics

5
1793
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 start fresh after the .jpg section of the move images code. this will be essential to make the whole thing work. Please help. Even if you just write out the solution. I am beggin. I am desperate. Please help. <!DOCTYPE HTML PUBLIC...
6
1996
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 a way how I can hyperlink the pictures and have something like thumbnails to view them in a form? any comment apprecciated. thanks
1
1342
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 different images that are referenced (page.gif, folder.gif, plus.gif, minus.gif, and clearpixel.gif). What I assumed would happen would be that once it loads page.gif, every place in the transformed HTML document that references page.gif would...
10
1354
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. I placed it here: c:\inetpub\wwwroot\testapp\
18
2153
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 control or tecnique which I can accomplish this? http://www.tehrantraffic.com/gif.asp?g=cam3_ttcc_00001.jpg&t=TTCC%20website Thanks a lot
5
1240
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
13961
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 Developer 2005 (Express Edition) built-in web server, but fails when run under IIS (same file, same location). I think I've tracked the problem to a failure of IIS to find WebResources.axd. For example, if I point IE to the src centerated by the...
14
4483
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 information. But I really have no idea how to do this. The whole move_uploaded_file part is obviously wrong, but I'm not sure where to go from here to achieve my ends. $videoUploadDir = '../video/'; $imageUploadDir = '../images/'; ...
0
9646
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9484
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10157
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9957
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7505
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6742
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5386
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4055
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3658
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.