title: How to call Html.RenderAction() with parameters declarated in jscript?
body: <p>I have a javascript in *.cshtml file</p>
  
  <pre><code>$(function () {
  
  sliderDiv.slider({
    range: true,
    min: minVal,
    max: maxVal,
    values: [minVal, maxVal]
  });
  
  sliderDiv.bind("slidechange", function (event, ui) {
  
    var d = "min=" + ui.values[0] + "&amp;max=" + ui.values[1];
    $.ajax({
      type: "POST",
      url: '@Url.Action("Update", "Default")',
      data: d,
      success: function (result, ajaxObj) {
          alert('ok');
          alert(result.min + " - " + result.max);
          $("#ajaxresult").html('@{Html.RenderAction("Update", "Default");}');
      },
     error: function (ajaxObj, message, exceptionObj) { alert('no'); }
  });
  });
  }
  </code></pre>
  
  <p>And Controller:</p>
  
  <pre><code>public ActionResult Update(int? min, int? max)
          {
              if(min == null) min = 1;
              if(max == null) max = 1;
              var s = new SliderModel()
                                  {
                                      min = (int)min * 1000,
                                      max = (int)max * 1000
                                  };
  
              return new JsonResult
                         {
                             Data = s,
                             ContentEncoding = Encoding.UTF8,
                             JsonRequestBehavior = JsonRequestBehavior.AllowGet,
                             ContentType = "json"
                         };
  
          }
  </code></pre>
  
  <p>I want to use this line</p>
  
  <pre><code>$("#ajaxresult").html('@{Html.RenderAction("Update", "Default");}');
  </code></pre>
  
  <p>to send <code>ui.values[0]</code> and <code>ui.values[1]</code> as <code>min</code> and <code>max</code> parameters to <code>Html.RenderAction("Update", "Default")</code></p>
  
  <p>Something like <code>$("#ajaxresult").html('@{Html.RenderAction("Update", "Default", new {min = ui.values[0], max = ui.values[1]});}');</code> </p>
  
  <p>How can I do something like that???</p>