Beispiel #1
0
    protected void BindDropDowns()
    {
        PRMS controller = new PRMS();

        PostingDropDown.DataSource     = controller.GetAllJobPostings();
        PostingDropDown.DataTextField  = "Description";
        PostingDropDown.DataValueField = "JobPostingID";
        PostingDropDown.Items.Insert(0, new ListItem("Select Job Posting...", "0"));
        PostingDropDown.DataBind();

        Profession.DataSource     = controller.GetProfessions();
        Profession.DataTextField  = "Description";
        Profession.DataValueField = "ProfessionID";
        Profession.Items.Insert(0, new ListItem("Select Profession...", "0"));
        Profession.DataBind();

        Skillset.DataSource     = controller.GetSkillsets();
        Skillset.DataTextField  = "Description";
        Skillset.DataValueField = "SkillsetID";
        Skillset.Items.Insert(0, new ListItem("Select Skillset...", "0"));
        Skillset.DataBind();

        Region.DataSource     = controller.GetRegions();
        Region.DataTextField  = "Description";
        Region.DataValueField = "RegionID";
        Region.Items.Insert(0, new ListItem("Select Region...", "0"));
        Region.DataBind();
    }
Beispiel #2
0
    protected void BindDropDowns()
    {
        Skillset.Items.Clear();
        PRMS controller = new PRMS();

        Skillset.DataSource     = controller.GetSkillsets();
        Skillset.DataTextField  = "Description";
        Skillset.DataValueField = "SkillsetID";
        Skillset.Items.Insert(0, new ListItem("Select Skillset...", "0"));
        Skillset.DataBind();
    }