Ryan Ryan - 1 year ago 55
ASP.NET (C#) Question

asp.net image control - how to put an image in it

I have a list of

. I want to update my asp.net
control in the
event with the last image from that list.

I can only find properties like ImageURL. Can't I just do something like


is there any such property on the Image control?

Answer Source

No, there isn't.

To do what you want, you can write an HTTP Handler that returns the image and point the ImageUrl to it.

Here is one example of such a handler.