Posts Tagged by ASP.NET

Passing list as parameter from AJAX request to MVC controller

I came across this recently when needed to pass array of selected values into MVC controller during Ajax request. Scenario was that on the page I had set of checkboxes and button. User can then make multiple choice selection and submit form using button. Page could look like this: <ul id=”sampleList”>     <li><input type=”checkbox” value=”1″ checked=”checked” />text 1</li>…