image.imageurl を動的に設定したい...しかし、次のコードは、ページがマスターページにない場合にのみ機能します。
コードは次のとおりです。
protected void AsyncFileUpload1_UploadedComplete(object sender, AjaxControlToolkit.AsyncFileUploadEventArgs e)
{
Byte[] bytes = AsyncFileUpload1.FileBytes;
string base64String = Convert.ToBase64String(bytes, 0, bytes.Length);
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "img",
"top.document.getElementById('Image1').src='data:image/jpg;base64," + base64String + "';",
true);
}