title: Trying to get javascript variable in vb.net codebehind
body: <p>I have a function where I am trying to get the username and password that the user entered. It IS being stored in "unixName" and "unixPass" on the client side. I have dUnixName and dUnixPass which one is a hidden input and the other is a label. They are different because I was playing around with different ways at getting this to work.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  //        Internet Explorer/Firefox needs this script to show radio selection after Modal Popup
  function enableRDO() {
      document.getElementById("rdoUnix").checked = true;
     // document.getElementById("dUnixName").value = document.getElementById("unixName").value;
      //document.getElementById("dUnixPass").value = document.getElementById("unixPass").value;
      document.getElementById('&lt;%=dUnixName.ClientID %&gt;').value = document.getElementById("unixName").value;
      document.getElementById('&lt;%=dUnixPass.ClientID %&gt;').value = document.getElementById("unixPass").value;
      return true;
  };
  </code></pre>
  
  <p></p>