Hi Nick,
An HTML document (which is what an ASPX page is on the client) has no images
*in* it, but references *to* images that are fetched by the browser via
their URLs. So, the first thing you have to do is implement a page or
HttpHandler that can send an image in response to an HttpRequest. This can
fairly easily be done with an ASPX page that sets the Response.ContentType
property to "image/jpg" (or another image MIME type) and binarily writes the
image to the Response.OutputStream.
It can be done using a single ASPX page that takes information from the
URL's QueryString to determine what sort of an image to return.
In order to have the image update, the browser must make a new request for
the image. The tricky part here is that the browser caches images, so you
should append something to the QueryString to make the URL slightly
different with each Request. After that, you can use JavaScript on the
client, or PostBacks to refresh the image (or even Ajax if you're brave!).
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
A brute awe as you,
a Metallic hag entity, eat us.
<ng****@gmail.com> wrote in message
news:11**********************@e56g2000cwe.googlegr oups.com...
Hi,
I'm new to ASP.Net (first looked at it 2 days ago). All I want to do
is create a user's web page that displays data from a database in the
form of a bespoke display (e.g picture of a computer with a temp guage
on the monitor).
I've got lots of ADO.Net experience so I was able to create the
database side very quickly. I now have a web page that displays the
data as text.
I'd like to use the standard .Net graphics drawing classes for image
creation (or even my own images). How can I update the user's page
without causing a refresh? I.e. I might only want to change the colour
of a LED on the screen.
Any help greatly apreciated.
Thanks,
Nick