I'm already hacking it a bit now, no luck.
Using asyncfileupload control to upload a file and display an image. When loading / updating the page, the termination of loading and the image are displayed.
But you need to know how I can do this without reloading / refreshing the page.
After reading the online posts, I see a recommendation to use the scriptmanager, but this does not work for me:
protected void FileUploadComplete(object sender, AjaxControlToolkit.AsyncFileUploadEventArgs e)
{
.
.
.
.
ScriptManager.RegisterStartupScript(this, GetType(), "TestAlert",
"window.parent.document.getElementById('" + img_ProfilePic.ClientID + "').src='" + "http://www.site.com/default.jpg" + "');",
true);
}
Thanks Behrouz
source
share