My husband has ankle and knee pains for 10 years and gout 15 years. Tried all the meds prescribe from his doc but still suffered. Is surgery best now?

Refractory gout . Intensive life style/dietary modification is important. Refractory gout needs to be treated with medications having differing mechanisms of action. Uricosuric agents (eg. Probenecid), newer xanthine oxidase inhibitors (eg.Febuxostat), certain diuretics & others. Colchicine & corticosteroids may work better than nsaids for symptom control. Intenist or rheumatologist should be consulted.
Pain. It seems like you don't have an accurate diagnosis yet for the cause of his ankle and knee pain. If the medications are not working perhaps another diagnosis maybe helpful to decide on a new treatment plan.