protected void btnRequirements_Click(object sender, EventArgs e) { Cars.Requirements require = new Cars.Requirements(); require.price = Convert.ToInt16(ddlPrice.SelectedValue); require.numDoor = Convert.ToInt16(ddlnumDoor.SelectedValue); require.eco = ddlEco.SelectedValue; require.numPassenger = Convert.ToInt16(ddlnumPassenger.SelectedValue); DataSet myDS = carRental.FindCars(require, txtCity.Text, ddlState.SelectedValue); rptCars.DataSource = myDS; rptCars.DataBind(); divSearchCars.Visible = false; divCars.Visible = true; }
/// <remarks/> public void FindCarsByAgencyAsync(Agency agency, Requirements requirements, string city, string state) { this.FindCarsByAgencyAsync(agency, requirements, city, state, null); }
/// <remarks/> public void FindCarsAsync(Requirements requirements, string city, string state) { this.FindCarsAsync(requirements, city, state, null); }