For child or adult?
For both restrict fluids in evening & before bed.
Wake & toilet children
1 - 2 hours after bed then try an enuresis alarm, which is the most effective mechanism to cure bedwetting
in children > 7-years-old. Medication such as desmopressin
to reduce nocturnal urine
production or long acting anticholinergics to increase functional bladder
capacity, for all ages, require physician's prescriptions.