title: Passing Variable from JS to VB.net
body: <p>I have a variable that gets a value in a js function. I need to get its value as a double into a vb.net variable. </p>
  
  <p>I have tried putting the variable into a label then  grabbing it from the label in vb.net  as shown in the code below:</p>
  
  <p>Js part. </p>
  
  <pre><code>document.getElementById("Label1").innerText = nwLat;
  </code></pre>
  
  <p>then in the vb part</p>
  
  <pre><code>   Dim nwLat As Double
      nwLat = Label1.Text
      MsgBox(nwLat)
  </code></pre>
  
  <p>it does not work for me any ideas? the error that comes up is
   Input string was not in a correct format.</p>
  
  <p>Cheers!</p>