In this paper, we investigate the generation and controlling of the optical vortex beam using a dye-doped liquid crystal (DDLC) cell. The spatial distribution of the quasi-sinusoidal orientation of the liquid crystal molecules creates a quasi-sinusoidal phase grating (PG) in the DDLC cell. Depending on the incident light pattern, Trans to Cis photoisomerization of the dye molecules affects the orientation of the liquid crystal molecules. To do so, an amplitude fork grating (FG) is used as a mask, and its pattern is stored in the cell by a pattern printing method as the PG. One of the particular features of the stored grating in the cell is its capability in the diffraction efficiency controlled by the applied electric field. The results show, based on the central defect in the FG pattern, the diffracted probe beam in different orders is optical vortices. As a new technique, this type of stored pattern acts like an amplitude grating but according to the results, its structure is in fact a PG. This technique leads to the vortex beam switching capability by applying an electric field to the cell. The results show that by applying 22V, all the diffraction orders vanish. Meanwhile, the vortex beams reappear by removing the applied voltage. The diffraction efficiency of the vortex beams as well as its generation dependency on the polarization of the incident beam studied. The maximum efficiency of the first diffraction order for linear polarized incident beam was obtained at 0V, about 8%. Based on the presented theory, a simulation has been done which shows the Cis form of the dye molecules has been able to change the angle of LC molecules on average about 12.7°. The study of diffracted beam profiles proves that they are electrically controllable vortex beams.