protected void LoadProgramClass(string programCourseLevelId, int currentProgramClassId) { RadComboBoxProgramClass.Items.Clear(); RadComboBoxProgramClass.Text = string.Empty; if (!string.IsNullOrEmpty(programCourseLevelId)) { RadComboBoxProgramClass.DataSource = new CProgramClass().GetProgramClassList(Convert.ToInt32(programCourseLevelId), currentProgramClassId); RadComboBoxProgramClass.DataTextField = "Name"; RadComboBoxProgramClass.DataValueField = "Value"; RadComboBoxProgramClass.DataBind(); } }
protected void LoadProgramClass(string programId, string programCourseId, string programCourseLevelId) { RadComboBoxProgramClass.Items.Clear(); RadComboBoxProgramClass.Text = string.Empty; if (!string.IsNullOrEmpty(programId)) { RadComboBoxProgramClass.DataSource = new CProgramClass().GetProgramClassList(Convert.ToInt32(programId), string.IsNullOrEmpty(programCourseId) ? 0 : Convert.ToInt32(programCourseId), string.IsNullOrEmpty(programCourseLevelId) ? 0 : Convert.ToInt32(programCourseLevelId)); RadComboBoxProgramClass.DataTextField = "Name"; RadComboBoxProgramClass.DataValueField = "Value"; RadComboBoxProgramClass.DataBind(); } RadComboBoxProgramClass.Items.Insert(0, new RadComboBoxItem("N/A", null)); }