title: ASP.NET Hidden field's OnValueChange
body: <p>I have several different scenarios, all with different longitudes and latitudes (and other data, but that's beside the point) in JSON. I am parsing the JSON ok, and have been able to get the desired values. What I would like to do is transfer these values to the CodeBehind.
  What I am doing so far is something like this:</p>
  
  <p>This is the responsible script: </p>
  
  <pre><code>function getScenarioDetails(json) {      
      $("#Welcome").text("Welcome user " + json.user);   
      $("#longitude").val(json.current_loc.lon).change();       
      $("#latitude").val(json.current_loc.lat).change();     
  }
  </code></pre>
  
  <p>And these are the hidden fields:</p>
  
  <pre><code>&lt;form runat="server"&gt;
     &lt;asp:HiddenField runat="server" id="longitude" OnValueChanged="valueChanged"   /&gt;
     &lt;asp:HiddenField runat="server" id="latitude" OnValueChanged="valueChanged"  /&gt;  
  &lt;/form&gt;
  </code></pre>
  
  <p>I realise that the value is being changed. But something is going wrong with the OnValueChanged as it is not firing. What exactly am I doing wrong? </p>