Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.
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.