I've been looking for a way to achieve this behavior and I found this sample project.
The trick in this project is that it changes the form
target to an iframe
created on the fly.
So far so good, I can get the byte[]
on the server-side. But I need to change an image preview after the file is uploaded.
How can I get the iframe
to update the main page? Would I have to save it on a file on the disk, make a javascript callback to change the image url? Is there another way to do this? What's recommended?
This control suggested by vorrtex actually causes a full page postback, am I missing something or is it the correct behavior?