public void Accept(int ID)
        {
            PullCourseClass obj = new PullCourseClass();

            if (obj.AcceptRegPullCourse(ID) == 1)
            {
                fillGv();
            }
        }
        protected void btnSaveReg_Click(object sender, EventArgs e)
        {
            bool   Result = false;
            int    ID     = Convert.ToInt32(Session["ID"].ToString());
            string Path   = "";
            string Data   = txtNumCourse1.Text.ToString() + txtNumCourse2.Text.ToString() + txtNumCourse3.Text.ToString() +
                            txtNmberHours.Text.ToString() + txtNumHourAfter.Text.ToString() + DateTime.Today.ToString() + rbtAceptHead.SelectedValue.ToString() + rbtAcceptDean.SelectedValue.ToString();

            if (fuSignatureReg.HasFile)
            {
                string Private = fuSignatureReg.FileName.ToString();
                Path = System.Web.HttpContext.Current.Server.MapPath("Test") + "/" + Private;
                string Pasword = txtPassSign.Text.ToString();
                fuSignatureReg.SaveAs(Server.MapPath("Test") + "/" + fuSignatureReg.FileName);
                SignatureEmployee newSig     = new SignatureEmployee();
                string            strencrypt = newSig.encrypet(Data, Path, Pasword);
                Result = newSig.Decreypt(strencrypt, ID);
            }

            if (Result == true)
            {
                PullCourseClass obj       = new PullCourseClass();
                int             id        = Convert.ToInt32(Request.QueryString["id"]);
                int             AcceptReg = Convert.ToInt32(rbtAcceptRegistration.SelectedValue.ToString());

                if (obj.AcceptRegPullCourse(id, AcceptReg) == 1)
                {
                    DataRow  dr    = obj.drgetform(id);
                    int      STUid = Convert.ToInt32(dr["StudentID"].ToString());
                    SentMail s     = new SentMail();
                    s.sendemailStudent(STUid);
                    Response.Redirect("ProcessRequest.aspx");
                }

                errorReg.Visible = false;
            }
            else
            {
                errorReg.Text    = "التوقيع المدخل خاطئ او كلمة المرور";
                errorReg.Visible = true;
            }
        }