protected void Button5_Click(object sender, EventArgs e) { if (Button5.Text == "Finish") { if (web.EmpToCustOffer(Convert.ToString(Session["Order"]))) { ClientScript.RegisterStartupScript(this.GetType(), "myalert", "alert('" + " Renegociere trimisa clientului" + "');", true); Response.Redirect("EmpPendingOrders.aspx"); } else { ClientScript.RegisterStartupScript(this.GetType(), "myalert", "alert('" + " Eroare" + "');", true); } } else { Response.Redirect("EmpPendingOrders.aspx"); } }