protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
 {
     RadGrid1.Rebind();
     if (e.Argument == "new")
     {
         RadGrid1.Rebind();
         RadGrid1.CurrentPageIndex = RadGrid1.PageCount - 1;
     }
     if (e.Argument == "yes")
     {
         if (Session["DeleteId"] != null)
         {
             try
             {
                 anestheticServiceNoteId = (int)Session["DeleteId"];
                 AnestheticServiceNote asn = CntAriCli.GetAnestheticServiceNote(anestheticServiceNoteId, ctx);
                 CntAriCli.DeleteAnestheticServiceNote(asn, ctx);
                 RadGrid1.Rebind();
                 Session["DeleteId"] = null;
             }
             catch (Exception ex)
             {
                 Session["Exception"] = ex;
                 string command = String.Format("showDialog('Error','{0}','error',null, 0, 0)"
                                                , Resources.GeneralResource.DeleteRecordFail);
                 RadAjaxManager1.ResponseScripts.Add(command);
             }
         }
     }
 }