title: pass client side javascript value to server side C#
body: <p>I'm trying to pass the value of a variable created in java script in to the server side.</p>
  
  <p>I'm using asp.net AJAX C#.</p>
  
  <p>I was able to insert the value into an asp:Label by using:</p>
  
  <pre><code>document.getelementbyid("MyLabel").innerhtml = "data";
  </code></pre>
  
  <p>but once i try to get the value in the server side:</p>
  
  <pre><code>string NewLabel = MyLabel.Text;
  </code></pre>
  
  <p>it shows a null error.</p>
  
  <p>does anyone know a way to pass the java script value to the server?</p>
  
  <p>Thank you.</p>