protected void Reset_Pass(object seder, EventArgs e)
        {
            ClearkLoginFields ef = new ClearkLoginFields();
            Service           my = new Service();

            ef.Pass        = NewPass.Text;
            ef.ConfirmPass = Newpass1.Text;
            ef.OldPass     = CurrPass.Text;
            ef.ClerkID     = appid.Text;
            try
            {
                if (my.Pass_Reset_Clerk(ef) == 1)
                {
                    string myMsg = "Password Reset Sucessfully ", myTitle = "Server Says";
                    ClientScript.RegisterStartupScript(this.GetType(), "Popup", "ShowPopup('" + myMsg + "', '" + myTitle + "');", true);
                }
                else
                {
                    string myMsg = "No Such uid or email detected in Database", myTitle = "Server Says";
                    ClientScript.RegisterStartupScript(this.GetType(), "Popup", "ShowPopup('" + myMsg + "', '" + myTitle + "');", true);
                }
            }
            catch (Exception ex)

            { Response.Write(ex); }
        }
        protected void btn_login(object sender, EventArgs e)
        {
            ClearkLoginFields ef = new ClearkLoginFields();
            Service           my = new Service();

            ef.ClerkID = (Clerkid.Text);
            ef.Pass    = pass.Text;
            try
            {
                string res = my.Clerk_Login(ef);
                Response.Write(res);
                if (res.Equals("Login sucess"))
                {
                    Session["clerkid"] = Clerkid.Text;
                    Response.Redirect("/Clerk/ClerkDash.aspx");
                }
                else
                {
                    string url    = "/Student/StudLogin.aspx";
                    string script = "window.onload = function(){ alert('";
                    script += res;
                    script += "');";
                    script += "window.location = '";
                    script += url;
                    script += "'; }";
                    ClientScript.RegisterStartupScript(this.GetType(), "Redirect", script, true);
                }
            }
            catch (Exception ex)
            {
                Response.Write(ex);
            }
        }