Beispiel #1
0
    public void LoadData()
    {
        DropDownFrom.DataSource     = BLLPlace.getAllData();
        DropDownFrom.DataTextField  = "PlaceName";
        DropDownFrom.DataValueField = "PlaceID";
        DropDownFrom.DataBind();

        DropDownTo.DataSource     = BLLPlace.getAllData();
        DropDownTo.DataTextField  = "PlaceName";
        DropDownTo.DataValueField = "PlaceID";
        DropDownTo.DataBind();
    }
    private void fillData()
    {
        DataTable place = BLLPlace.getAllData();

        ddlStartPlace.DataSource     = place;
        ddlStartPlace.DataTextField  = "PlaceName";
        ddlStartPlace.DataValueField = "PlaceName";
        ddlStartPlace.DataBind();

        ddlDesPlace.DataSource     = place;
        ddlDesPlace.DataTextField  = "PlaceName";
        ddlDesPlace.DataValueField = "PlaceName";
        ddlDesPlace.DataBind();
    }
Beispiel #3
0
    protected void LoadData()
    {
        DataTable dt = BLLPlace.getAllData();

        dv                     = new DataView(dt);
        dv.Sort                = "PlaceID ASC";
        total.Text             = dv.Count.ToString();
        gvPlaceList.DataSource = dv;
        gvPlaceList.DataBind();
        if (gvPlaceList.HeaderRow != null)
        {
            gvPlaceList.HeaderRow.TableSection = TableRowSection.TableHeader;
        }
    }
    private void fillData()
    {
        RouterName.Text = router.RouterName;

        DataTable place = BLLPlace.getAllData();

        ddlStartPlace.DataSource     = place;
        ddlStartPlace.DataTextField  = "PlaceName";
        ddlStartPlace.DataValueField = "PlaceName";
        ddlStartPlace.DataBind();

        ddlStartPlace.SelectedValue = router.StartPlace;

        ddlDesPlace.DataSource     = place;
        ddlDesPlace.DataTextField  = "PlaceName";
        ddlDesPlace.DataValueField = "PlaceName";
        ddlDesPlace.DataBind();

        ddlDesPlace.SelectedValue = router.DestinationPlace;
        txtDescription.Text       = router.Description;
        txtDistance.Text          = router.Distance.ToString();

        cbStatus.Checked = router.Status;
    }