コード例 #1
0
    void DisplayPosition()
    {
        ClsPositionCollection positions = new ClsPositionCollection();

        LbPositionList.DataSource     = positions.PositionList;
        LbPositionList.DataValueField = "PositionID";
        LbPositionList.DataTextField  = "Description";
        LbPositionList.DataBind();
    }
コード例 #2
0
    protected void BtnApply_Click(object sender, EventArgs e)
    {
        ClsPositionCollection positions = new ClsPositionCollection();

        positions.ReportByDescription(TbDescriptionFilter.Text);
        LbPositionList.DataSource     = positions.PositionList;
        LbPositionList.DataValueField = "PositionID";
        LbPositionList.DataTextField  = "Description";
        LbPositionList.DataBind();
    }