.NETGURU
Server Control Embedded Image
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngreuse' list.


Chuck Peper
I would like to make a server control (not user control) that kind of
replicates Explorer. So there would be a lot of images
display/redisplayed (folders, line images, etc.)

I don't know how or whether I can use an embedded image to display in
the output. The only examples I have seen for displaying images are
kind of lame.
    1. output the image to the browser in a response (can't have text)
    2. specify the image src to an aspx page that does number 1.

Number 2 is very lame and is probably incredibily inefficent for a
server control. I can't imagine including an aspx page with the
distribution of the control or having 50 requests to the server for the
same image for each page (yes you could cache it).

There must be someother way to display the embedded image??????????????

Reply to this message...
 
    
Chris Kinsman
HTML doesn't support "embedding" images. They must be a ref to a
resource...

-----Original Message-----
From: Chuck Peper [mailto:Click here to reveal e-mail address]=20
Sent: Tuesday, June 11, 2002 7:07 AM
To: aspngreuse
Subject: [aspngreuse] Server Control Embedded Image

I would like to make a server control (not user control) that kind of=20
replicates Explorer. So there would be a lot of images=20
display/redisplayed (folders, line images, etc.)

I don't know how or whether I can use an embedded image to display in=20
the output. The only examples I have seen for displaying images are=20
kind of lame.
    1. output the image to the browser in a response (can't have
text)
    2. specify the image src to an aspx page that does number 1.

Number 2 is very lame and is probably incredibily inefficent for a=20
server control. I can't imagine including an aspx page with the=20
distribution of the control or having 50 requests to the server for the=20
same image for each page (yes you could cache it).

There must be someother way to display the embedded image??????????????

| [aspngreuse] member Click here to reveal e-mail address =3D YOUR ID
| http://www.aspfriends.com/aspfriends/aspngreuse.asp =3D JOIN/QUIT

Reply to this message...
 
    
Chuck Peper
I understand but somehow when the page is being rendered by the web
server. The image, on the web servers hard drive, is being converted
from a file to bytes and being sent to the browser.

Is there a way in code to take the image which is embedded as a resouce
in the Server Control and stream it's bytes to the browser.

I can't imagine that when you buy a 3rd party server control you have to
install the control and all the little images it uses.

In article <668208@aspngreuse>, Click here to reveal e-mail address says...
[Original message clipped]

Reply to this message...
 
    
Chris Kinsman
The page isn't rendered by the server. It is rendered by the client by
parsing the HTML and obtaining additional resources as needed.

It parses through the HTML, sees the image tag, and then requests the
resource associated with it. There is no way to embed the image
directly in HTML.

No idea how other server control vendors are doing their distribution
but it is fairly common when installing a server control to throw a
virtual directory off the root of the server containing support files.
i.e. JavaScript includes, images, etc.

ASP.NET already does this for it's javascript includes.

-----Original Message-----
From: Chuck Peper [mailto:Click here to reveal e-mail address]=20
Sent: Tuesday, June 11, 2002 9:51 AM
To: aspngreuse
Subject: [aspngreuse] RE: Server Control Embedded Image

I understand but somehow when the page is being rendered by the web=20
server. The image, on the web servers hard drive, is being converted=20
from a file to bytes and being sent to the browser.

Is there a way in code to take the image which is embedded as a resouce=20
in the Server Control and stream it's bytes to the browser. =20

I can't imagine that when you buy a 3rd party server control you have to

install the control and all the little images it uses.

In article <668208@aspngreuse>, Click here to reveal e-mail address says...
[Original message clipped]

| [aspngreuse] member Click here to reveal e-mail address =3D YOUR ID
| http://www.aspfriends.com/aspfriends/aspngreuse.asp =3D JOIN/QUIT

Reply to this message...
 
    
Andy Smith
i'm sorry... but there's just no good way around the FACT that html is =
DESIGNED AND RESTRICTED to recieving images as seperate http requests =
from the html text.

you might be able to set up some weird http handler for IIS that maps to =
code which looks in the control's dll for an image to stream back... but =
that isn't really that far different than having a seperate aspx page =
which returns images... and is FAR more work.

__
Andy Smith
Chief Code Monkey

[Original message clipped]

Reply to this message...
 
 




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification