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