protected void btnUpdate_Click1(object sender, EventArgs e)
        {
            if (txtName.Value.Equals("") || txtEmail.Value.Equals("") || txtStudentId.Value.Equals(""))
            {
                if (txtName.Value.Equals(""))
                {
                    lblErrorNombre.Visible = true;
                }

                if (txtEmail.Value.Equals(""))
                {
                    lblErrorCorreo.Visible = true;
                }

                if (txtStudentId.Value.Equals(""))
                {
                    lblErrorCarnet.Text    = "*Carnet no puede estar vacido";
                    lblErrorCarnet.Visible = true;
                }
            }

            else
            {
                //revisa si carnet o rol son numericos
                if (!int.TryParse(txtStudentId.Value, out i))
                {
                    if (!int.TryParse(txtStudentId.Value, out i))
                    {
                        lblErrorCarnet.Text    = "*Carnet ocupa ser un numero";
                        lblErrorCarnet.Visible = true;
                    }
                }


                else
                {
                    User user = (User)Session["UserEdit"];

                    dataUser.updateUser(user.Id, txtName.Value, txtEmail.Value, Int32.Parse(txtStudentId.Value), user.Password, Int32.Parse(RolList.SelectedValue));
                    Response.Redirect("/Admin.aspx");
                }
            }
        }