Esempio n. 1
0
    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();
    }
Esempio n. 2
0
    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();
    }
Esempio n. 3
0
 public DataSet cityDataSet()
 {
     DataModel.AdminDM objDataModel = new DataModel.AdminDM();
     BusinessLogic.AdminBL objBusinessLogic = new BusinessLogic.AdminBL();
     return (objBusinessLogic.ddlCityList());
 }
Esempio n. 4
0
 public DataSet cityDataSet()
 {
     DataModel.AdminDM     objDataModel     = new DataModel.AdminDM();
     BusinessLogic.AdminBL objBusinessLogic = new BusinessLogic.AdminBL();
     return(objBusinessLogic.ddlCityList());
 }