private void bindDDL() { BusinessLogic.AdminBL objBusinessLogic = new BusinessLogic.AdminBL(); DataSet ds = new DataSet(); DataSet ds1 = new DataSet(); ds = objBusinessLogic.ddlCityList(); ds1 = objBusinessLogic.ddlCoachList(); ddlFromCity.DataSource = ds.Tables[0]; ddlFromCity.DataTextField = "cityName"; ddlFromCity.DataValueField = "cityId"; ddlFromCity.DataBind(); ddlToCity.DataSource = ds.Tables[0]; ddlToCity.DataTextField = "cityName"; ddlToCity.DataValueField = "cityId"; ddlToCity.DataBind(); ddlCoachType.DataSource = ds1.Tables[0]; ddlCoachType.DataTextField = "coachName"; ddlCoachType.DataValueField = "coachId"; ddlCoachType.DataBind(); ddlBorStop.DataSource = ds.Tables[0]; ddlBorStop.DataTextField = "cityName"; ddlBorStop.DataValueField = "cityId"; ddlBorStop.DataBind(); ddlAddServiceStop.DataSource = ds.Tables[0]; ddlAddServiceStop.DataTextField = "cityName"; ddlAddServiceStop.DataValueField = "cityId"; ddlAddServiceStop.DataBind(); }
private void BindDDLCoaches() { BusinessLogic.AdminBL objBusinessLogic = new BusinessLogic.AdminBL(); DataSet ds1 = new DataSet(); ds1 = objBusinessLogic.ddlCoachList(); ddlCoaches.DataSource = ds1.Tables[0]; ddlCoaches.DataTextField = "coachName"; ddlCoaches.DataValueField = "coachId"; ddlCoaches.DataBind(); }