示例#1
0
        //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();
        }
示例#2
0
 /// <remarks/>
 public void FindCarsByAgencyAsync(int AgencyID, Requirements objRequirements, string city, string state)
 {
     this.FindCarsByAgencyAsync(AgencyID, objRequirements, city, state, null);
 }
示例#3
0
 /// <remarks/>
 public void FindCarsAsync(Requirements objRequirements, string city, string state)
 {
     this.FindCarsAsync(objRequirements, city, state, null);
 }