Esempio n. 1
0
 protected void staffsubmit_Click(object sender, EventArgs e)
 {
     myproject.classes.student adobj = new classes.student();
     adobj.Staffname         = staffname.Text;
     adobj.Staff_id          = staff_id.Text;
     adobj.Staffemailaddress = emailaddress.Text;
     adobj.Staffmobilenumber = mobilenumber.Text;
     adobj.Staffusername     = username.Text;
     adobj.Staffpassword     = password.Text;
     adobj.Insertstaff();
 }
Esempio n. 2
0
        protected void updateAttendance_Click(object sender, EventArgs e)
        {
            myproject.classes.student ajay = new classes.student();

            foreach (GridViewRow gvr in studentFetch.Rows)
            {
                if (((CheckBox)gvr.FindControl("chkAtt")).Checked == true)
                {
                    ajay.Rno = Convert.ToInt32(((HiddenField)gvr.FindControl("hdnRNo")).Value);
                    ajay.MarkAbsent();
                }
            }
        }
Esempio n. 3
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            myproject.classes.student studobj = new classes.student();

            studobj.Studentrollno       = rollno.Text;
            studobj.Studentname         = studentname.Text;
            studobj.Studentemail        = studentemail.Text;
            studobj.Studentmobilenumber = mobilenumber.Text;
            studobj.Studentusername     = username.Text;
            studobj.Studentpassword     = password.Text;
            studobj.Section             = section.Text;
            studobj.Insertstdn();
        }
Esempio n. 4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                DataTable View_Absent_Students = new DataTable();
                myproject.classes.student View_Absent_Students_obj = new classes.student();
                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();
                }
            }
        }
        protected void submit_Click(object sender, EventArgs e)
        {
            myproject.classes.student objStd = new classes.student();
            //objStd.Username = username.Text;
            objStd.Password = password.Text;
            objStd.Section  = section.Text;



            int res = objStd.CheckLogin();

            if (res == 1)
            {
                if (section.Text == "student")
                {
                    Response.Redirect("~/module/admin/admin.aspx");
                }
                //   else if (section.Text == "admin")
                //     Response.Redirect("admin.aspx");
            }
            else
            {
            }
        }