title: How to get variables from JavaScript to ASP.NET (MVC)
body: <p>I'm using ASP.NET MVC (I'm really new to both asp.net and the asp.net mvc type projects, but trying hard to learn). </p>
  
  <p>I've set up MVC with a controller so that it runs a C#.net method which;</p>
  
  <ol>
  <li>queries an mssql db</li>
  <li>converts it to json</li>
  <li>returns the json string</li>
  </ol>
  
  <p>It's called from the javascript by requesting an url with a parameter. But what I need now is for the C# part to read two integer variables from the javascript. What would be the best way to do that, and does anyone have any good examples/code that I could look at?</p>
  
  <p>It would be extremely helpful. Especially if there are smart ways of doing it with jquery / asp.net (mvc)</p>