protected void EliminarButton_Click(object sender, EventArgs e)
{
Cuentas cuenta = new Cuentas();
cuenta.CuentaId = ConvertirId();
if (cuenta.Eliminar())
{
HttpContext.Current.Response.Write("<SCRIPT>alert('Datos eliminados')</SCRIPT>");
Limpiar();
}
else
{
HttpContext.Current.Response.Write("<SCRIPT>alert('Error al eliminar')</SCRIPT>");
}
}