protected void AbortRecordBtnOk_Click(object sender, EventArgs e) { ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "function", "reallowOp();", true); if (!String.IsNullOrEmpty(this.TxtTextAbortRecord.Text.Trim())) { SchedaDocumento docReturn = DocumentManager.AbortRecord(this.TxtTextAbortRecord.Text); DocumentManager.setSelectedRecord(docReturn); Response.Write("<html><body><script type=\"text/javascript\">parent.closeAjaxModal('AbortRecord', 'up');</script></body></html>"); Response.End(); } else { ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "alert", "alert('La motivazione è obbligatoria.');", true); } }