Exemple #1
0
 public void PopulateActivityTypes(Dictionary <int, string> activityTypes)
 {
     ActivityTypeDropDownList.DataSource     = activityTypes;
     ActivityTypeDropDownList.DataTextField  = "Value";
     ActivityTypeDropDownList.DataValueField = "Key";
     ActivityTypeDropDownList.DataBind();
 }
 public void PopulateActivityTypes(IList <ListItem> activityTypes)
 {
     ActivityTypeDropDownList.DataSource     = activityTypes;
     ActivityTypeDropDownList.DataTextField  = "Text";
     ActivityTypeDropDownList.DataValueField = "Value";
     ActivityTypeDropDownList.DataBind();
 }
Exemple #3
0
        public void PopulateDropDownLists()
        {
            ActivityTypeDropDownList.DataSource     = ActivityType.KnownTypesForNewNotes;
            ActivityTypeDropDownList.DataTextField  = "Value";
            ActivityTypeDropDownList.DataValueField = "Key";
            ActivityTypeDropDownList.DataBind();

            NoteTypeDropDownList.DataSource     = NoteType.KnownTypesForNewNotes;
            NoteTypeDropDownList.DataTextField  = "Value";
            NoteTypeDropDownList.DataValueField = "Key";
            NoteTypeDropDownList.DataBind();
        }