How To Call Html.renderaction() With Parameters Declarated In Jscript?
I have a javascript in *.cshtml file $(function () { sliderDiv.slider({ range: true, min: minVal, max: maxVal, values: [minVal, maxVal] }); sliderDiv.bind('slidechange',
Solution 1:
var url = '@Url.Action("Update", "Default")';
url += '/?min=' + ui.values[0] + '&max=' + ui.values[1];
$("#ajaxresult").load(url);
Description: Load data from the server and place the returned HTML into the matched element.
Post a Comment for "How To Call Html.renderaction() With Parameters Declarated In Jscript?"