protected void Button1_Click(object sender, EventArgs e)
        {
            var database = new DatabaseGateway();
            NeeitUser currentUser = database.GetUser(User.Identity.Name);

            database.newTopic(tb_Title.Text, tb_Content.Text,currentUser.userId);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            var database = new DatabaseGateway();
            NeeitUser currentUser = database.GetUser(User.Identity.Name);

            tb_Username.Text = User.Identity.Name;
            tb_adress.Text = currentUser.Address;
            tb_BirthDate.Text = currentUser.BirthDate;
            tb_curso.Text = currentUser.Curso;
            tb_FullName.Text = currentUser.FullName;
        }
        protected void bt_Dados_Click(object sender, EventArgs e)
        {
            try
            {
                var database = new DatabaseGateway();

               database.InsertUserData(tb_FullName.Text, tb_BirthDate.Text, tb_Adress.Text, tb_Curso.Text, User.Identity.Name);
                Response.Redirect("~/User/Profile.aspx");
            }
            catch (Exception ex)
            {
                string myScript = @"alert('Houve um erro no acesso aos dados...\nErro: " + ex.Data.Values.ToString() + "');";
                Page.ClientScript.RegisterStartupScript(this.GetType(), "Erro", myScript, true);
            }
        }