Last post Apr 19, 2019 05:53 PM by funluckykitty
Apr 19, 2019 12:34 PM|funluckykitty|LINK
I'm struggling with getting values that have been keyed in a DetailsView that is in Edit Mode. Using the code below from my CodeBehind, I can "find" the values for three labels that are in my Employee DetailsView that are not editable. These fields are
just listed to identify the Employee Name, and Date of Hire that is being edited.
How do I get the data that is keyed into textboxes, dropdowns and checkboxes in my detailsview when it's in Edit mode?
Dim employeeFirstName As String = dvEmployee.Rows(1).Cells(1).Text
Dim employeeLastName As String = dvEmployee.Rows(2).Cells(1).Text
Dim employeeDOH As String = dvEmployee.Rows(3).Cells(1).Text
Apr 19, 2019 05:53 PM|funluckykitty|LINK
Figured it out... Dim myCheckBox As CheckBox = DirectCast(dvEmployee.FindControl("cbAtHome"), CheckBox)