Hi,
You can use some JavaScript to do it. For example, you can include the following HTML inside your dialog's ContentTemplate:
Code: HTML/ASPX
<input type="button" onclick="closeDialogAndDoSomethingElse('test')" />
Here closeDialogAndDoSomethingElse is a JavaScript function inside your page:
Code: JavaScript
function closeDialogAndDoSomethingElse(arg)
{
//Close the dialog
eo_GetObject("Dialog1").close();
//Do something else
window.alert(arg);
}
The key is, the dialog is not a different page. It's in the same page as the calling window. So whatever you would do with regular HTML element you can do it within your dialog.
Hope this helps.
Thanks