protected void ImportAllNew(object sender, EventArgs e) { if (Matches.AddAllNewAircraftForUser(Page.User.Identity.Name)) { Page.Session.Timeout = 20; // restore a normal session timeout Response.Redirect("~/Member/Aircraft.aspx"); } else { lblImportError.Text = Resources.Aircraft.errImportFixErrors; UpdateGrid(); } }
protected void ImportAllNew(object sender, EventArgs e) { // Fix up any errors. Matches.ProcessParseResultsForUser(Page.User.Identity.Name); if (Matches.AddAllNewAircraftForUser(Page.User.Identity.Name)) { Response.Redirect("~/Member/Aircraft.aspx"); } else { lblImportError.Text = Resources.Aircraft.errImportFixErrors; UpdateGrid(); } }