title: value not passing from javascript to c#
body: <p>Asp.net</p>
  
  <pre><code>       &lt;asp:HiddenField ID="hdnfldVariable" runat="server" /&gt;
  </code></pre>
  
  <p>Javascript</p>
  
  <pre><code>function GetUserName() {
          var wshell = new ActiveXObject("WScript.Shell");
          var unamer = document.getElementById('hdnfldVariable');
          unamer.value = wshell.ExpandEnvironmentStrings("%USERNAME%");
      }
  </code></pre>
  
  <p>c#</p>
  
  <pre><code>string username1 = hdnfldVariable.Value;
  </code></pre>
  
  <p>username1 gets null value. Can anyone check if its correct way to do it?</p>