Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- clsDBConnector dbConnector = new clsDBConnector();
- string cmdStr = "INSERT INTO tblLate (studentID, period, dateOfLate, minsLate) " +
- "VALUES ('" + cmbStudentID.SelectedValue + "' ,'" + period + "' , '" + DateTime.Today + "','" + minsLate + "')";
- dbConnector.Connect();
- dbConnector.DoDML(cmdStr);
- dbConnector.close();
- this.Close();
- MessageBox.Show("Late Added.");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement