Groups | Blog | Home
all groups > asp.net building controls > april 2005 >

asp.net building controls : Include images in an assembly.


Shark Bait
4/21/2005 1:08:06 PM
Right now I have a web control that serves as a header for all of our
intranet sites. The assembly in in the GAC but it has images (jpg) that are
located in a directory on the server. Is there a way to compile these images
into the assembly?

Steve C. Orr [MVP, MCSD]
4/21/2005 1:35:34 PM
Compiling the images into the assembly is the easy part. (Mark them as
embedded resources in the property window.)
Getting them back out of the assembly and displaying them in a page is the
hard part.
You need a special page (or even better yet, an HTTP Module) that only
outputs the image(s).

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net



[quoted text, click to view]

Shark Bait
4/21/2005 2:03:03 PM
What kind of terms would I do a search for? Do you know of any tutorials or
articles?

[quoted text, click to view]
Steve C. Orr [MVP, MCSD]
4/21/2005 2:47:25 PM
Yes, here's an example for you:
http://weblogs.asp.net/whaggard/archive/2003/03/24/4250.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net


[quoted text, click to view]

lisa NO[at]SPAM starways.net
4/21/2005 5:02:42 PM
However, that requires you to include the special page, which doesn't
really save you anything, unless you have a lot of graphics embedded.

Here's a way to do it that may or may not work for you. It works for
me, and I don't need any external files.

http://groups-beta.google.com/group/microsoft.public.dotnet.framework.aspnet.buildingcontrols/msg/327c5772fa97da69

Lisa


[quoted text, click to view]
lisa NO[at]SPAM starways.net
4/21/2005 5:04:19 PM
However, that requires you to include the special page, which doesn't
really save you anything, unless you have a lot of graphics embedded.

Here's a way to do it that may or may not work for you. It works for
me, and I don't need any external files.

http://groups-beta.google.com/group/microsoft.public.dotnet.framework.aspnet.buildingcontrols/msg/327c5772fa97da69

Lisa


[quoted text, click to view]
AddThis Social Bookmark Button