Use image in web control

S

shapper

Hello,

I am creating an Asp.Net 2.0 project.
This project includes various custom web controls.
I need to use a few images in this custom web controls.
Then I want to to compile everything into a DLL.

My questions are:
1. What should the build action (In the properties panel) of these
images be?
2. What should the copy output (In the properties panel) of these
images be?
3. How should I reference these images in my custom web controls
classes?

Thank You,
Miguel
 
L

Laurent Bugnion

Hi,
Hello,

I am creating an Asp.Net 2.0 project.
This project includes various custom web controls.
I need to use a few images in this custom web controls.
Then I want to to compile everything into a DLL.

My questions are:
1. What should the build action (In the properties panel) of these
images be?
2. What should the copy output (In the properties panel) of these
images be?
3. How should I reference these images in my custom web controls
classes?

Thank You,
Miguel

This is where I learned to do that:
http://weblogs.asp.net/jeff/archive/2005/07/18/419842.aspx

Note that it doesn't work only for images, but for every type of
embedded resource (JavaScript, CSS, etc...)

HTH,
Laurent
 

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

Similar Threads


Top