Hi Richard
Thx for your reply ... I checked some other parts of CMS and found the code below.
in the mdoal.aspx page the below javascript code should be added :
<script type="text/javascript">
// Closes modal dialog and refresh parent window
function CloseAndRefresh() {
window.close();
wopener.location.replace(wopener.location);
}
</script>
<asp:Literal ID="ltlScript" runat="server" />
and in the modal.aspx.cs under the button event the code below shoud be added:
ltlScript.Text = ScriptHelper.GetScript("CloseAndRefresh();");