Hi I need to render a partial view (returned from the controller) to show some customer summary details. This will need to happen when the user clicks on a button. In the the mean time the user can select different customers on a grid. I keep note of the selected customer id in a hidden field using jquery on the grids selection changed event. When the user clicks on a button i need to pass this hidden field value (selected id) to the controller, the controller does some work and returns a partial view. I then need to render this partial view on the page. I have tried the following but have two problems
1) I cant fig out how to send the hidden field value to the controller 2) After the partial view is rendered I cant get it to rerender if the user selects another customer and clicks the button again
#PlaceHolder is just a div element
function DoSomwWork() { $('#PlaceHolder').load('<%= Url.Action("GetSelectedCustSummary", "SomeController", new { selectedId = NEED THE HIDDEN FIELD VAL HERE })%>'); } }