protected void btn_SaveAdmin_Click(object sender, EventArgs e) { int result = Convert.ToInt32(ddl_CityAdmins.SelectedValue); if (result > 0) { int res = objCityAdmin.TansferResponsibility(Convert.ToInt32(Request.QueryString["oldAdmin"]), result); //objCityAdmin.DeleteCityAdmin(Convert.ToInt32(Request.QueryString["oldAdmin"])); objCityAdmin.DeleteCityAdmin(Convert.ToInt32(Request.QueryString["oldAdmin"]), Convert.ToInt32(Session["UserId"])); Helper.ClearInputs(this.Controls); hdn_ClassAdminId.Value = "0"; Response.Redirect("CityAdmin.aspx?Ref=Transfer"); } }