Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.
Protected Sub btnUpdateRoom_Click(sender As Object, e As System.EventArgs) Handles btnUpdateRoom.Click ' Variables Dim roomName As String = Trim(Server.HtmlEncode(tbRoomName.Text)) Dim roomSize As Integer = tbRoomSize.Text Dim dateStart As Date = tbStartDate.Text Dim dateEnd As Date = tbEndDate.Text Dim timeStart As DateTime = ddlStartTime.SelectedValue Dim timeEnd As DateTime = ddlEndTime.SelectedValue Dim location As String = Trim(Server.HtmlEncode(tbLocation.Text)) Dim roomNotes As String = Trim(Server.HtmlEncode(tbNotes.Text)) Try roomLogic.UpdateRoomDetails(RoomID, dateStart, dateEnd, timeStart, timeEnd, roomName, roomSize, location, roomNotes) lbUpdateStatus.Visible = True lbUpdateStatus.ForeColor = Drawing.Color.Green lbUpdateStatus.Text = "Update Successful!" Catch ex As Exception lbUpdateStatus.Visible = True lbUpdateStatus.ForeColor = Drawing.Color.Red lbUpdateStatus.Text = "WARNING: Update Failed. ERROR: " & ex.ToString 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.