Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers. It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.
Protected Sub fvAddWorkOrder_ItemInserting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.FormViewInsertEventArgs) Handles fvAddWorkOrder.ItemInserting Dim newWorkOrderID As New NewWorkOrderID 'Class created to gerenrate next incramental WorkOrderID Dim txtDate As TextBox = DirectCast(fvAddWorkOrder.FindControl("txtDateOpened"), TextBox) Dim dateOpened As Date = txtDate.Text ' date needed to pass into the class to detrmine next woID Dim nextWorkOrderID As String = newWorkOrderID.NewWorkOrderID(dateOpened).ToString() Try e.Values("WorkOrderID") = nextWorkOrderID Catch ex As Exception MsgBox("There was a problem generating the Work Order. Contact System Administrator at 552-7604") Return End Try End Sub
Join the community of 500,000 technology professionals and ask your questions.