protected void btnLogin_Click(object sender, EventArgs e)
        {
            if (txtuser.Text != string.Empty && txtpass.Text != string.Empty)
            {
                datoAlum.UsuarioAlumno     = datoAlum.EncriptarMD5(txtuser.Text);
                datoAlum.ContrasenhaAlumno = datoAlum.EncriptarMD5(txtpass.Text);
                int verifalum = Convert.ToInt32(ejeAlum.loginAlumno(datoAlum));
                if (verifalum > 0)
                {
                    Session["IDUserLoged"] = ejeAlum.ObtenerIDLogin(datoAlum);
                    datoAlum.IDAlumno      = Convert.ToInt32(Session["IDUserLoged"]);
                    Response.Redirect("~/GUI/InicioAlumno");
                }
                else
                {
                    datoMaestro.UsuarioMaestro     = datoMaestro.EncriptarMD5(txtuser.Text);
                    datoMaestro.ContrasenhaMaestro = datoMaestro.EncriptarMD5(txtpass.Text);
                    int verifmaestro = Convert.ToInt32(ejeMaestro.loginMaestro(datoMaestro));
                    if (verifmaestro > 0)
                    {
                        Session["IDUserLoged"] = ejeMaestro.ObtenerIDLogin(datoMaestro);
                        datoMaestro.IDMaestro  = Convert.ToInt32(Session["IDUserLoged"]);

                        Response.Redirect("~/GUI/Inicio");
                    }
                }
                txtuser.Text = string.Empty;
                ScriptManager.RegisterStartupScript(this, GetType(), "Popup", "erroralert();", true);
            }
        }