Blog This!
Re-enabling the delete class function
The delete button had been disabled in rightaddclassnew.aspx and .vb . It would not fire the row-deleting event where the actual delete logic lives. I finally did get it to work. I modified the deleting logic to always delete all of the session records, attendance and class behavior records. I added an alert box at delete time informing the users and allowing them to cancel the action. I added a delete trigger to the classes table to copy the class record into the classes_mods table on delete with a flag of “del.”
Verified that principal users can delete as can admins, teachers cannot see the delete button.

Leave a Reply
You must be logged in to post a comment.