Control of Parabolic Partial Differential Equations Based on Semi-Discretizations