Esempio n. 1
0
        protected void submit_Click(object sender, EventArgs e)
        {
            myproject.classes.HOD staffobj = new classes.HOD();

            foreach (GridViewRow gvr in fetch_Staff_Attendance.Rows)
            {
                if (((CheckBox)gvr.FindControl("staff_attendance_checkbox")).Checked == true)
                {
                    staffobj.Rono = Convert.ToInt32(((HiddenField)gvr.FindControl("hidden_num")).Value);
                    staffobj.Mark_staff_Absent();
                }
            }
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         DataTable             fetch_attendance_of_staff = new DataTable();
         myproject.classes.HOD staffobj = new classes.HOD();
         fetch_attendance_of_staff = staffobj.view_staff_attendance();
         if (fetch_attendance_of_staff.Rows.Count > 0)
         {
             staff_attendance.DataSource = fetch_attendance_of_staff;
             staff_attendance.DataBind();
         }
     }
 }
Esempio n. 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                DataTable             View_Absent_Students     = new DataTable();
                myproject.classes.HOD View_Absent_Students_obj = new classes.HOD();
                View_Absent_Students = View_Absent_Students_obj.Execute_student_absent_Queries();

                if (View_Absent_Students.Rows.Count > 0)
                {
                    id_of_Absent_Students.DataSource = View_Absent_Students;
                    id_of_Absent_Students.DataBind();
                }
            }
        }