protected void DisplayPrice(object sender, EventArgs e) { QuotationData qd = new QuotationData(); if (rbTwoWheeler.Checked) { qd.VehicleType = "two wheeler"; } else { qd.VehicleType = "four wheeler"; } qd.Brand = ddlBrand.SelectedItem.Text; qd.Model = ddlModel.SelectedItem.Text; Label4.Text = bi.getPrice(qd).ToString(); }
protected void PopupModels(object sender, EventArgs e) { QuotationData qd = new QuotationData(); qd.Brand = ddlBrand.SelectedItem.Text; List<QuotationData> list = bi.getModels(qd); ddlModel.Items.Clear(); ddlModel.Items.Add(new ListItem("Select Model","0")); foreach (var item in list) { ddlModel.Items.Add(new ListItem(item.Model, item.QDid.ToString())); } }
public List<QuotationData> getModels(QuotationData qd) { return dal.getModelNames(qd); }
public double getPrice(QuotationData qd) { return dal.getPrice(qd); }
public List<QuotationData> getbrand(QuotationData qd) { return dal.getBrandNames(qd); }