Rapid separation of nucleic acids by microchip electrophoresis could streamline many biological applications, but conventional chip injection strategies offer limited sample stacking, and thus limited sensitivity of detection. We demonstrate the use of photopatterned polyacrylamide membranes in a glass microfluidic device, with or without fixed negative charges, for preconcentration of double-stranded DNA prior to electrophoretic separation to enhance detection limits. We compared performance of the two membrane formulations (neutral or negatively charged) as a function of DNA fragment size, preconcentration time, and preconcentration field strength, with the intent of optimizing preconcentration performance without degrading the subsequent electrophoretic separation. Little size-dependent bias was observed for either membrane formulation when concentrating dsDNA > 100 bp in length, while the negatively charged membrane more effectively blocks passage of single-stranded oligonucleotide DNA (20-mer ssDNA). Baseline resolution of a six-band dye-labeled ladder with fragments 100-2000 bp in size was obtained in <120 s of separation time, with peak efficiencies in the range of 2000-15,000 plates/cm, and detection limits as low as 1 pM per single dye-labeled fragment. The degree of preconcentration is tunable by at least 49-fold, although the efficiency of preconcentration was found to have diminishing returns at high field and/or long times. The neutral membrane was found to be more robust than the negatively charged membrane, with approximately 2.5-fold larger peak area during the subsequent separation, and less decrease in resolution upon increasing the preconcentration field strength.