Exemple #1
0
        private void BindControls()
        {
            BusController busController = new BusController();
            BusInfo       busInfo       = busController.SelectByBusID(this.cboBusCode.SelectedValue.ToString());

            this.cboBusCode.SelectedValue = busInfo.BusID;
            this.txtBusNumber.Text        = busInfo.BusNo;
            this.cboBusType.SelectedValue = busInfo.BusTypeID;
            this.lblTotalSeat.Text        = Convert.ToString(busInfo.TotalSeats);
        }