Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > <scr> tag and image files embedded in resource files? (how)?

Reply
Thread Tools

<scr> tag and image files embedded in resource files? (how)?

 
 
Ole Hanson
Guest
Posts: n/a
 
      01-10-2005
Building a webserver controls, I want to compile my images into a resource
file and then use this for my
<img> tags in my table
(<table><tr><img scr=(my resourcefile)</tr></table>);
instead of having a list of images on my server...

How can this be accomplished??

Thanks you!

/Ole


 
Reply With Quote
 
 
 
 
Steve C. Orr [MVP, MCSD]
Guest
Posts: n/a
 
      01-10-2005
You'll need a special page to output these images.
Every <img> tag will need to point to this page.
You page will read the image from the resource file and use
Response.OutputStream.Write method.

This example demonstrates how to do it, except it read from a database
instead of a resource file so it gets you at least half way there.
http://steve.orr.net/content/asp200307so_f.asp

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


"Ole Hanson" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Building a webserver controls, I want to compile my images into a resource
> file and then use this for my
> <img> tags in my table
> (<table><tr><img scr=(my resourcefile)</tr></table>);
> instead of having a list of images on my server...
>
> How can this be accomplished??
>
> Thanks you!
>
> /Ole
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do u invoke Tag b's Tag Handler from within Tag a's tag Handler? shruds Java 1 01-27-2006 03:00 AM
Resource manager problem: naming for embedded resource. Dirc Khan-Evans ASP .Net 1 10-17-2005 12:52 PM
<img> tag and resource files for scr-source? Ole Hanson ASP .Net Building Controls 3 01-12-2005 01:20 PM
Locating and matching resources in embedded and external resource files Johann Blake ASP .Net 0 12-17-2003 06:18 PM
Setting a WebForm (.aspx and source file) as an assembly Embedded Resource LidorP ASP .Net 1 11-22-2003 03:29 PM



Advertisments