Chemically speaking, both 7up and milk have acidic components. There is citric acid in 7up and lactic acid as the major component of milk. Toothpaste is relatively basic. Hence, after you brush the basic residue will react with the citric or lactic acid in ur respective beverages producing the "funny" taste.