Prevention of some of the causes that contribute to the development of erectile dysfunction can decrease the chances of developing the problem. For example, if a person decreases their chances of developing diabetes, heart disease, and hypertension, they will decrease their chances of developing erectile dysfunction. Other things like stopping smoking, eating a healthy diet (heart healthy with adequate vitamin intake), and exercising daily may reduce a person's risk.
Many common medications for treating hypertension, depression, and high blood lipids (high cholesterol) can contribute to erectile dysfunction (see above). Treatment of hypertension is an example. There are many different types (classes) of medications for high blood pressure; these include beta-blockers, calcium channel blockers, diuretics (medications that increase urine volume), angiotensin converting enzyme inhibitors (ACE inhibitors), and angiotensin receptor blockers (ARBs). Patients may use these medications alone or in combination to control blood pressure. Some of these medications can cause troubles with erections. For example, Inderal (a beta-blocker) and hydrochlorothiazide (a diuretic) cause erectile dysfunction, while calcium channel blockers and ACE inhibitors do not seem to affect erectile function. On the other hand, other medications (such as angiotensin receptor blockers [ARB] including losartan [Cozaar] and valsartan [Diovan]) may actually help with erections. Therefore, if possible, you may benefit from changing your medications, but this requires approval by your prescribing health care provider.
All NOS subtypes produce NO, but each may play a different biologic role in various tissues. nNOS and eNOS are considered constitutive forms because they share biochemical features: They are calcium-dependent, they require calmodulin and reduced nicotinamide adenine dinucleotide phosphate for catalytic activity, and they are competitively inhibited by arginine derivatives. nNOS is involved in the regulation of neurotransmission, and eNOS is involved in the regulation of blood flow.
In fact, one common reason many younger men visit their doctor is to get erectile dysfunction medication. Often, men with erectile dysfunction suffer with diabetes or heart disease, or may be sedentary or obese, but they don’t realize the impact of these health conditions on sexual function. Along with erectile dysfunction treatment, the doctor may recommend managing the illness, being more physically active, or losing weight.
Adverse effects related to PDE5i use with mild-moderate and transient (58). Furthermore, side effects usually attenuate if use is not discontinued. Autonomic dysreflexia, a life-threatening phenomenon characterized by bradycardia, hypertension, facial flushing and headaches associated with SCI lesions above T6, has not been reported with use. However, hypotension leading to dizziness in individuals treated with sildenafil has been noted with high thoracic and cervical levels of injury (72). No adverse events were noted within the study; however, the dizziness was reported by use of sildenafil 50 mg in the cervical LOI and 100 mg in the thoracic LOI patients. Headache is the most reported side effect of all PDE5i, followed by dyspepsia and flushing. Priapism, and death have not been reported after use of PDE5i by SCI patients.
Both ED and low testosterone (hypogonadism) increase with age. The incidence of the latter is 40% in men aged 45 years and older.  Testosterone is known to be important in mood, cognition, vitality, bone health, and muscle and fat composition. It also plays a key role in sexual dysfunction (eg, low libido, poor erection quality, ejaculatory or orgasmic dysfunction, reduced spontaneous erections, or reduced sexual activity). 
ICI therapy often produces a reliable erection, which comes down after 20-30 minutes or with climax. Since the ICI erection is not regulated by your penile nerves, you should not be surprised if the erection lasts after orgasm. The most common side effect of ICI therapy is a prolonged erection. Prolonged erections (>1 hour) can be reversed by a second injection (antidote) in the office.