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

How to get an image resource URL? Thank You.

Hello,

I am using a comercial control where I need to define various buttons.
One of the button properties is URL.

For example:
id.Button.URL = "images/button01.jpg"

I want to use the resources in Asp.Net.

I can't make something like:
id.Button = resources.mywebsite.button01

Basicly I need to retrive the URL of my button01 which is in my
resources so I can use it:
id.Button = resources.mywebsite.button01...(getURL)

How can i do this?

Thanks,
Miguel

Jan 18 '06 #1
1 1489
the SRC= can ;point to a simple generic handler.
Add this (add new item), default code is inserted, rewrite the contenttype
to image/jpg
Then 'upload' the image by streaming the resourcedata.

The following is uploading a file though:
context.Response.WriteFile(sImage)

"Miguel Dias Moura" <md*REMOVE*moura@gmail*NOSPAM*.com> schreef in bericht
news:up**************@TK2MSFTNGP09.phx.gbl...
Hello,

I am using a comercial control where I need to define various buttons.
One of the button properties is URL.

For example:
id.Button.URL = "images/button01.jpg"

I want to use the resources in Asp.Net.

I can't make something like:
id.Button = resources.mywebsite.button01

Basicly I need to retrive the URL of my button01 which is in my resources
so I can use it:
id.Button = resources.mywebsite.button01...(getURL)

How can i do this?

Thanks,
Miguel

Jan 18 '06 #2

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

Similar topics

1
by: peter | last post by:
Hi, I have 2 questions: 1) I have read the articles on how to embedd and image in a resource file. I have also read the articles on how to open it from the resource file and put it in a...
6
by: Saya | last post by:
Hello, This is a repost 'cause I haven't solve the problem: I can't use the System.Drawing class 'Image.FromStream' in the CompactFramework environment. What I've done with respect to Brendan's...
1
by: peter | last post by:
Hi, I have 2 questions: 1) I have read the articles on how to embedd and image in a resource file. I have also read the articles on how to open it from the resource file and put it in a...
0
by: Miguel Dias Moura | last post by:
Hello, I created MyPage.aspx and MyPage.aspx.vb in VS2005. I also added a few images to the local resource file MyPage.aspx.resx I added an asp:Image to MyPage.aspx with ID="MyImage". I need...
3
by: bbrewder | last post by:
I am interested in hearing how other people have handled sharing resources in multiple projects (for example, a save icon). We have a product that has many forms within many projects. Many of...
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
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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...

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.