2,6-Pyridinedicarboxaldehyde is an intermediate used to prepare functionalized resin Amberlite XAD-4,boron-dipyrromethene (BODIPY)-based fluorescence probe with a N,N′-(pyridine-2, 6-diylbis(methylene))-dianiline substituent and novel N-heterocyclic chitosan aerogel derivatives.