//protected void btnSubmit_Click(object sender, EventArgs e) //{ // gvCarAgencies.DataSource = pxyCar.GetRentalCarAgencies(ddlCity.SelectedValue, ddlState.SelectedValue); // gvCarAgencies.DataBind(); //} protected void btnSubmit2_Click(object sender, EventArgs e) { CarSVC.Requirements requirements = new CarSVC.Requirements(); requirements.FourDoors = cbxFourDoors.Checked; requirements.Automatic = cbxAutomatic.Checked; requirements.SUV = cbxSUV.Checked; requirements.MPGInCity30 = cbx30MPG.Checked; int AgencyID = Int32.Parse(gvCarAgencies.SelectedRow.Cells[1].Text); gvCars.DataSource = pxyCar.FindCarsByAgency(AgencyID, requirements, ddlCity.SelectedValue, ddlState.SelectedValue); gvCars.DataBind(); }
/// <remarks/> public void FindCarsByAgencyAsync(int AgencyID, Requirements objRequirements, string city, string state) { this.FindCarsByAgencyAsync(AgencyID, objRequirements, city, state, null); }
/// <remarks/> public void FindCarsAsync(Requirements objRequirements, string city, string state) { this.FindCarsAsync(objRequirements, city, state, null); }