Syntheses of 2-alkylamino- and 2-dialkylamino-4,6-diarylpyridines and 2,4,6-trisubstituted pyrimidines using solid-phase-bound chalcones.