protected void MinuevaTabla_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        if (e.CommandName == "Eliminar")
        {
            try
            {
                int consultaId = Convert.ToInt32(e.CommandArgument);
                ConsultaBLL.EliminarConsulta(consultaId);
                CargarLista();
            }
            catch (Exception ex)
            {
            }
        }

        if (e.CommandName == "Editar")
        {
            Response.Redirect("~/FormularioConsultas.aspx?id=" + e.CommandArgument.ToString());
        }
    }