/// <summary> /// On cancel event /// </summary> private void ctlAsync_OnCancel(object sender, EventArgs e) { ctlAsync.Parameter = null; AddError(ResHelper.GetString("validation.validationcanceled")); ScriptHelper.RegisterStartupScript(this, typeof(string), "CancelLog", ScriptHelper.GetScript("var __pendingCallbacks = new Array();")); string separator = "<br />"; int error = CurrentError.IndexOf(separator); mInfoText = CurrentError.Substring(0, error); mErrorText = CurrentError.Substring(error + separator.Length); pnlLog.Visible = false; pnlGrid.Visible = true; CurrentLog.Close(); DataPostProcessing = true; }
/// <summary> /// On cancel event /// </summary> private void ctlAsync_OnCancel(object sender, EventArgs e) { ctlAsyncLog.Parameter = null; AddError(ResHelper.GetString("validation.validationcanceled")); ScriptHelper.RegisterStartupScript(this, typeof(string), "CancelLog", ScriptHelper.GetScript("var __pendingCallbacks = new Array();")); const string SEPARATOR = "<br />"; int error = CurrentError.IndexOf(SEPARATOR, StringComparison.OrdinalIgnoreCase); mInfoText = CurrentError.Substring(0, error); mErrorText = CurrentError.Substring(error + SEPARATOR.Length); pnlLog.Visible = false; pnlGrid.Visible = true; Data.PostProcessingRequired = true; }