So far I have tried this:
Page.ClientScript.RegisterStartupScript(this.GetType(),
"closePage",
"window.returnValue='http://sp-pubdev:88/Resources/Images/testFile.png';
alert(window.returnValue);
SP.UI.ModalDialog.commonModalDialogClose(SP.UI.DialogResult.OK);", true
);
and this:
Page.ClientScript.RegisterStartupScript(this.GetType(),
"closePage",
"window.returnValue='http://sp-pubdev:88/Resources/Images/testFile.png';
alert(window.returnValue);
window.close();", true
);
With both of these I will see my alter, but the window never closes. Is there something else I need to be doing here?