473,320 Members | 1,856 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,320 software developers and data experts.

Resource Files, Images, And The ImageUrl Property

I have a resource file (*.resx) with several images in it. I am having
trouble finding a way to use these images for controls such as Image,
ImageButton, and other controls that an image can be assigned to. I have no
trouble using String resources, but since the ImageUrl property expects a
String, not an image, I am having trouple here. The only solution I can come
up with is to create an extra Page that takes a querystring and returns an
image, and then use that as the value for the ImageUrl, but it doesn't seem
like that should be necessary. Is there a way to get a string that can be
assigned to the ImageUrl property, or some way to access the images without
saving them as individual files? Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/
Sep 14 '08 #1
2 2238
Hi

check out this thread..
might help you
http://forums.asp.net/p/1299694/2534052.aspx

Regards

-------
Munna

www.munna.shatkotha.com/blog
www.munna.shatkotha.com
www.shatkotha.com
Sep 14 '08 #2
No, that does not help. I am looking for a way to use the image stored in
the *.resx file. I do not want to need to upload the original *.gif or
*.jpeg file, that is why I am putting the image in the *.resx file. The page
you mentioned suggests using a String in the *.resx file, which works if you
upload the original image, but if you are going to do that, you may as well
not even use a *.resx file.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"Munna" <mu******@gmail.comwrote in message
news:3d**********************************@73g2000h sx.googlegroups.com...
Hi

check out this thread..
might help you
http://forums.asp.net/p/1299694/2534052.aspx

Regards

-------
Munna

www.munna.shatkotha.com/blog
www.munna.shatkotha.com
www.shatkotha.com

Sep 14 '08 #3

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

Similar topics

2
by: Don Tucker | last post by:
Hello, I have a Windows Application that needs to load multiple image files in response to users clicking buttons. Currently, I just have these images as .jpg files on disk, but I don't want to...
13
by: david | last post by:
I can not figure out what is the problem that I can protect ASP.NEt form resource but not some other type of files, for example, images. All my aspx forms located in Demo folder and image files...
8
by: Andreas Zita | last post by:
Hi Im creating my first 2.0 site and I cant find the Build Action property? I want to embedd an image-file in my site-assembly but I don't know how? In 1.1 I could set Build Action to Embedded...
0
by: Frenchie | last post by:
Hi, I have created a very neet menu from an example found on the MSDN library at: http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.menuitembinding.imageurlfield.aspx My...
1
by: Nickneem | last post by:
The following is driving me mad: VS2005 Compact framework, project upgraded from 2003. I get a cast exeception error trying to populate an imagelist (code is by design)...
2
by: =?Utf-8?B?R3JlZw==?= | last post by:
I've added some ICO Images to some buttons on my forms. I added them by selecting an Image via the "Select Resource" window. Anyway, all of my images are working just fine, I am getting a WARNING...
1
by: Christian | last post by:
Hi, i added an image in my Solution in folder Resources and now i will open... Someone can help me? thanks
4
by: Ken Fine | last post by:
I've been living with a frustrating issue with VS.NET for some months now and I need to figure out what the problem is. Hopefully someone has run into the same issue and can suggest a fix. I...
2
by: Nathan Sokalski | last post by:
I have a resource file (*.resx) with several images in it. I am having trouble finding a way to use these images for controls such as Image, ImageButton, and other controls that an image can be...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.