protected void Button1_Click(object sender, EventArgs e) { EmployeeTable empTable = new EmployeeTable(); StoredWheelsTable stTable = new StoredWheelsTable(); if (empTable.CheckPasword(Int32.Parse(DropDownList1.SelectedValue), TextBox1.Text)) { int cstID = Int32.Parse(Server.UrlDecode(Request.QueryString["id"])); int empID = Int32.Parse(DropDownList1.SelectedValue); if (stTable.UnstoreTires(cstID, empID)) { Response.Redirect("~/Customers/Customers"); } else { Page.ClientScript.RegisterStartupScript(GetType(), "msgbox", "alert('Něco je špatně');", true); } } }