I have the following short piece of code that is never returning the string "selected".
Protected Function SelectedType(ByVal val As String) As String
If val <> String.Empty Then Return "selected"
End Function
However, if I change it to this, it works. Is there anything wrong when my shorthand code above? -Thanks
Protected Function SelectedType(ByVal val As String) As String
If Not String.IsNullOrEmpty(val) Then
Return "selected"
End If
End Function