I would like to iterate through an arrayList.... if the condition is found TRUE a cookie is set and if the condition is FALSE a cookie is set. See the code below which is partically working.
This is the error message: Exception Details: System.FormatException: Input string was not in a correct format.
Private Sub UserAccessArray()
txtEmployeeID.Text = CType(Context.Request.Cookies("EmployeeID")("EmployeeID"), Integer) 'working fine
Dim xUserAccess As New User()
xUserAccess.UserAccess(txtEmployeeID.Text)
If xUserAccess.errorFlag Then
lblErrorMsg.Text = xUserAccess.ErrorMessage
Else
Dim ArrayAccessList As New ArrayList
For Each b As DataRow In xUserAccess ...
Go to the complete details ...