protected void VulStatusEnTypeDropDown()
    {
        //periode dropdowns
        List <Type>   types     = blType.GetTypes();
        List <Status> statussen = blStatus.GetStatussen();

        foreach (Type type in types)
        {
            ListItem l = new ListItem(type.Naam, type.Id.ToString());
            DropDownListType.Items.Add(l);
        }
        foreach (Status status in statussen)
        {
            ListItem l = new ListItem(status.Naam, status.Id.ToString());
            DropDownListStatus.Items.Add(l);
        }
        //betaling dropdowns
        List <StatusBetaling> statusBetalingen = blStatusBetaling.GetBetalingStatussen();

        foreach (StatusBetaling statusBetaling in statusBetalingen)
        {
            ListItem l = new ListItem(statusBetaling.Naam, statusBetaling.Id.ToString());
            DropDownListWaarborgStatus.Items.Add(l);
            DropDownListVoorschotStatus.Items.Add(l);
            DropDownListRestbedragStatus.Items.Add(l);
        }
    }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         List <Status> statussen = blStatus.GetStatussen();
         List <Type>   types     = blType.GetTypes();
         foreach (Status status in statussen)
         {
             ListItem l = new ListItem(status.Naam, status.Id.ToString());
             DropDownListStatus.Items.Add(l);
         }
         foreach (Type type in types)
         {
             ListItem l = new ListItem(type.Naam, type.Id.ToString());
             DropDownListType.Items.Add(l);
         }
     }
 }