A simple and effective method to bond a thin coating of poly(N-isopropylacylamide) (NIPAAm) on a glass surface by UV photopolymerization, and the use of such a coated surface in nano and micro technology applications. A silane coupling agent with a dithiocarbamate group is provided as a photosensitizer, preferably, (N,N'-diethylamine)dithiocarbamoylpropyl-(trimethoxy)silane (DATMS). The thiocarbamate group of the sensitizer is then bonded to the glass surface by coupling the silane agent with the hydroxyl groups on the glass surface. The modified surface is then exposed to a solution of NIPAAm and a crosslinking agent which may be any organic molecule having an acrylamide group and at least two double bonds in its structure, such as N,N'-methylenebisacrylamide, and a polar solvent which may be any polar liquid which will dissolve the monomer and the crosslinking agent such as acetone, water, ethanol, or combinations thereof. By exposing the glass surface to a UV light, free radicals are generated in the thiocarbamate group which then bonds to the crosslinking agent and the NIPAAm. Upon bonding, the crosslinking agent and the NIPAAm polymerize to form a thin coating of PNIPAAm bonded to the glass. Depending upon the particular configuration of the glass, the properties of the PNIPAAm allow applications in micro and nano technology.