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