protected void Page_Load(object sender, EventArgs e) { if (Session["email"] == null) { Response.Redirect("SignIn.aspx"); } consBookEmail = Session["email"].ToString(); consBookUsr = Session["usrType"].ToString(); if (!IsPostBack) { addConsignmentBAL addConsignmentBALObj = new addConsignmentBAL(); drpSrType.DataSource = addConsignmentBALObj.addServicesEmpBALF(); drpSrType.DataValueField = "serviceType"; drpSrType.DataTextField = "serviceType"; drpSrType.DataBind(); drpSrcBrId.DataSource = addConsignmentBALObj.addBranchConsEmpBALF(); drpSrcBrId.DataValueField = "brBranchId"; drpSrcBrId.DataTextField = "brBranchId"; drpSrcBrId.DataBind(); drpDestBrId.DataSource = addConsignmentBALObj.addBranchConsEmpBALF(); drpDestBrId.DataValueField = "brBranchId"; drpDestBrId.DataTextField = "brBranchId"; drpDestBrId.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { addConsignmentBAL addConsignmentBALObj = new addConsignmentBAL(); drpSrType.DataSource = addConsignmentBALObj.addServicesEmpBALF(); drpSrType.DataValueField = "serviceType"; drpSrType.DataTextField = "serviceType"; drpSrType.DataBind(); calculateCostBAL calculateCostBALObj = new calculateCostBAL(); drpSrcCity.DataSource = calculateCostBALObj.calculateCostCityBALF(); drpSrcCity.DataValueField = "cityName"; drpSrcCity.DataTextField = "cityName"; drpSrcCity.DataBind(); drpDestCity.DataSource = calculateCostBALObj.calculateCostCityBALF(); drpDestCity.DataValueField = "cityName"; drpDestCity.DataTextField = "cityName"; drpDestCity.DataBind(); } }