title: vb.net convert value to string
body: <p>Not sure how to do this, here is my code</p>
  
  <pre><code> Dim oWeb As New System.Net.WebClient()
  
      oWeb.Headers.Add("Content-Type", "application/x-www-form-urlencoded")
  
      Dim bytArguments As Byte() = System.Text.Encoding.ASCII.GetBytes("username=username&amp;password=password")
      Dim bytRetData As Byte() = oWeb.UploadData("https://www.website.com", "POST", bytArguments)
      MsgBox(oWeb.ResponseHeaders.GetValues(2))
  </code></pre>
  
  <p>Im attempting to get the cookies saved then use it for another post data i want to do, but I keep getting logged off in like 1 second.</p>
  
  <p>The error is </p>
  
  <pre><code>Argument 'Prompt' cannot be converted to type 'String'.
  </code></pre>
  
  <p>for the message box</p>