Exemplo n.º 1
0
 private void Bind_grdMainCourse()
 {
     try
     {
         obj_MC = new clsManageMasterTables();
         DataTable dt = obj_MC.MainCourseSelectAll(DropDownSelectionType.All);
         grdMainCourse.DataSource = dt;
         grdMainCourse.DataBind();
         //div_grdMainCourse.Visible = true;
     }
     catch (Exception ex)
     {
         Response.Write(ex.Message);
     }
 }
Exemplo n.º 2
0
 private void Bind_ddlMainCourse()
 {
     try
     {
         obj_MC = new clsManageMasterTables();
         DataTable dt = obj_MC.MainCourseSelectAll(DropDownSelectionType.Active);
         ddlMainCourse.DataSource     = dt;
         ddlMainCourse.DataValueField = "MAIN_COURSE_ID";
         ddlMainCourse.DataTextField  = "COURSE_NAME";
         ddlMainCourse.DataBind();
         ddlMainCourse.Items.Insert(0, new ListItem("-- Select a Main Course --", "0"));
     }
     catch (Exception ex)
     {
         Response.Write(ex.Message);
     }
 }