<% ' Initialize error handling Call InitializeErrorHandling("activatenotification.asp") ' Get notificationid Dim notificationid notificationid = Trim(Request.Querystring("notificationid")) ' Validate notificationid If Not ValidateID(notificationid) Then Call HandleValidationError("displaynotifications.asp", "INVALID_ID") End If ' Verify the notification exists If Not RecordExists(objConn, "notifications", "notificationid", notificationid) Then Call HandleValidationError("displaynotifications.asp", "NOT_FOUND") End If ' Activate using parameterized query and reset endtime to NULL Dim strSQL, recordsAffected strSQL = "UPDATE notifications SET isactive = 1, endtime = NULL WHERE notificationid = ?" recordsAffected = ExecuteParameterizedUpdate(objConn, strSQL, Array(notificationid)) ' Cleanup and redirect Call CleanupResources() Response.Redirect("displaynotifications.asp") %>