Use image in web control

  • Thread starter Thread starter shapper
  • Start date Start date
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
 
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
 
Back
Top