Train for your certification. Learn the latest DevOps tools. Grow your skillset to do better work.
At Linux Academy, we release new training modules every week so you'll always be up to date on the latest tech.
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
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.