protected void Page_Load(object sender, EventArgs e)
        {
            bool   valid     = true;
            string teacherid = Request.QueryString["teacherid"];

            if (String.IsNullOrEmpty(teacherid))
            {
                valid = false;
            }

            //We will attempt to get the record we need
            if (valid)
            {
                var db = new SCHOOLDB();
                Dictionary <String, String> student_record = db.FindTeacher(Int32.Parse(teacherid));

                if (student_record.Count > 0)
                {
                    teacher_firstname_delete.InnerHtml = student_record["TEACHERFNAME"];
                }
                else
                {
                    valid = false;
                }
            }

            if (!valid)
            {
                teacher.InnerHtml = "Sorry!!!There was an error finding that student.";
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            bool   valid     = true;
            string teacherid = Request.QueryString["teacherid"];

            if (String.IsNullOrEmpty(teacherid))
            {
                valid = false;
            }

            //We will attempt to get the record we need
            if (valid)
            {
                var db = new SCHOOLDB();
                Dictionary <String, String> teacher_record = db.FindTeacher(Int32.Parse(teacherid));

                if (teacher_record.Count > 0)
                {
                    update_teacher_fname.Text   = teacher_record["TEACHERFNAME"];
                    update_teacher_lname.Text   = teacher_record["TEACHERLNAME"];
                    update_employee_number.Text = teacher_record["EMPLOYEENUMBER"];
                    update_hire_date.Text       = teacher_record["HIREDATE"];
                    update_salary.Text          = teacher_record["SALARY"];
                }
                else
                {
                    valid = false;
                }
            }

            if (!valid)
            {
                teacher_update.InnerHtml = "There was an error finding that student.";
            }
        }