A computer-generated hologram designed to generate an optical vortex was recorded in a cell filled with polymer-dispersed liquid crystal material under a collimated Ar+ laser beam operating at 514.5 nm. Owing to the photopolymerization-induced phase separation between the polymer and the liquid crystal, an index modulation was formed between the polymer-rich and liquid crystal-rich regions. A good optical vortex beam with high fidelity was reconstructed using a collimated He-Ne laser beam. The diffraction efficiency is estimated to be about 13%-17%. With a suitable voltage applied, the reconstructed optical vortex beam can be switched owing to the index change between the polymer and the liquid crystal.