How to get an image resource URL? Thank You.

M

Miguel Dias Moura

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
 
E

Edwin Knoppert

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top