protected void confirmDelist_Click(object sender, EventArgs e) { string propertyID = propID.Value.ToString(); int properID = int.Parse(propertyID); DataAccessLayer dao = new DataAccessLayer(); dao.delistProperty(properID); Response.Redirect("~/MyProperties.aspx"); }