I've got some code that is suppose to set a session variable and name a textbox depending on whether the record set is populated or not but its not working.
I don't get any errors but it just does nothing whether the recorded is populated or not. Can someone tell me why?
If objComp3("TRAINEEID") IsNot Nothing Then
Session("IQAComplianceMode") = "Update"
btnComplianceButton.Text = "Update Complance"
Session("IQAComplianceMode") = "Insert"
btnComplianceButton.Text = "Add Complance"
labeltest.text = objComp3("TRAINEEID").ToString