protected void btnSave_Click(object sender, EventArgs e) { try { if (Page.IsValid) { //Build the object from the screen values RevisedBudgetOtherCosts otherCosts = SessionManager.GetSessionValueRedirect(this, SessionStrings.REVISED_OTHER_COSTS) as RevisedBudgetOtherCosts; int multiplier = GetMultiplier(); if (otherCosts != null) { UpdateCurrentCosts(otherCosts, multiplier); UpdateUpdateCosts(otherCosts, multiplier); UpdateNewCosts(otherCosts, multiplier); //Add object to session SessionManager.AddRevisedOtherCosts(this, otherCosts); //Close the page if (!Page.ClientScript.IsClientScriptBlockRegistered(this.GetType(), "ButtonClickScript")) { Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "ButtonClickScript", "window.returnValue = 1; window.close();", true); } } } } catch (IndException exc) { ShowError(exc); return; } catch (Exception exc) { ShowError(new IndException(exc)); return; } }