Photochemical attachment of synthetic oligonucleotides on the three dimensional surface of a polyacrylamide based hydrogel was used in the specific detection of target oligonucleotides. Covalent attachment of the oligonucleotide to the hydrogel was mediated by the incorporation of a 2 + 2 photo-attachable functional group in both the hydrogel and the oligonucleotide probe. Expression and SNP assays were used to evaluate this platform.