I have been trying to close a dialog using code behind with no success.
The user should click a button, some processing is done and then the dialog should be closed.
I tried doing this using this code:
ScriptManager.RegisterStartupScript(this, typeof(string), "open", "window.top.close();", true);
But the dialog is never closed. What am I doing wrong?
View Complete Post