protected void getPositions()
    {
        Employee_pros pros      = new Employee_pros();
        List <string> positions = pros.getPositions(Session["user"].ToString().TrimEnd());

        for (int i = 0; i < positions.Count; i++)
        {
            DropDownList1.Items.Add(positions[i]);
        }
    }
Exemple #2
0
    protected void fill_position()
    {
        DropDownList1.Items.Clear();
        string        user     = Session["user"].ToString().TrimEnd();
        Employee_pros pros     = new Employee_pros();
        List <string> position = pros.getPositions(user);

        DropDownList1.Items.Add("ALL");
        foreach (string p in position)
        {
            DropDownList1.Items.Add(p);
        }
    }