Exemplo n.º 1
0
 protected void btAlterarPassword_Click(object sender, EventArgs e)
 {
     try
     {
         string guid         = Server.UrlDecode(Request["id"].ToString());
         string novapassword = tbPassword.Text;
         if (novapassword == String.Empty)
         {
             throw new Exception("");
         }
         Utilizador utilizador = new Utilizador();
         utilizador.atualizarPassword(guid, novapassword);
         Response.Redirect("~/index.aspx");
     }
     catch
     {
         Response.Redirect("~/index.aspx");
     }
 }