Glycosylation plays an important role in various pathological processes such as cancer. One key alteration in the glycosylation pattern correlated with cancer progression is an increased level as well as changes in the type of sialylation. Developing molecularly-imprinted polymers (MIPs) with high affinity for sialic acid able to distinguish different glycoforms such as sialic acid linkages is an important task which can help in early cancer diagnosis. Sialyllactose with alpha 2,6 ' vs. alpha 2,3 ' sialic acid linkage served as a model trisaccharide template. Boronate chemistry was employed in combination with a library of imidazolium-based monomers targeting the carboxylate group of sialic acid. The influence of counterions of the cationic monomers and template on their interactions was investigated by means of H-1 NMR titration studies. The highest affinities were afforded using a combination of Br- and Na+ counterions of the monomers and template, respectively. The boronate ester formation was confirmed by MS and H-1/B-11 NMR, indicating 1 : 2 stoichiometries between sialyllactoses and boronic acid monomer. Polymers were synthesized in the form of microparticles using boronate and imidazolium monomers. This combinatorial approach afforded MIPs selective for the sialic acid linkages and compatible with an aqueous environment. The molecular recognition properties with respect to saccharide templates and glycosylated targets were reported.