"01 ABC"
"123 DEF"
How can I get the value of "01" and "123" in asp.net?
I have tried the following code:
Dim ddlSession As String = "01 ABC"
Dim getSpaceIndex As Integer = ddlSession.IndexOf(" ")
Dim getSessionCode As String = ddlSession.Remove(getSpaceIndex)
but the getSpaceIndex will keep return -1 to me...