I am relatively new at using ASP.NET MVC, however I have got experience with using Web Forms.
My page has some cascading selects which in turn ajax load the next and finally reload the contents of the ajax tabs (jQuery UI).
One of the tabs has a search button which when submitted via jQuery loads a partial view into the given div using the code below:
$("#frm_Search").submit(function (e) {
if ($("#frm_Search").valid()) {
e.preventDefault();
$.post('@Url.Action("SearchResult", "Info")', {CCode:"", Period:"201108", Type:"XYZ"}, function (result) {
$('#div_SearchResult').html(result);
});
}
})
However when I click on the paging links for the WebGrid the parameters get nulled and thus no data rendered.
I would be greatful for any advice or guidance as I am unsure if I am going about solving this problem correctly.
See the below diagram for a clearer indication of my page structure.