在部分视图中设置数据过滤器

问题描述:

我需要一些帮助。 所以我试图从相同的列表模型调用很多部分视图,每个使用不同的过滤器。无论如何,我会将视图中的Datafilter值传递给模型吗?在部分视图中设置数据过滤器

+0

为此使用JQuery.Ajax。 –

+0

你可能会详细说明吗? –

+0

这是模型中充当DataFilter的方法。我需要在每个部分中设置TableName –

$(document).ready(function() { 
    // Add the page method call as an onclick handler for the div. 
    $("#Result").click(function() { 
    $.ajax({ 
     type: "POST", 
     url: "ControlerFolder/Controler", 
     data: {someParameter(Filter): "value"}, 
     contentType: "application/json; charset=utf-8", 
     dataType: "json", 
     success: function(msg) { 
    msg is the json that you can return 
     } 
    }); 
    }); 
}); 

如果你需要更多的帮助说点什么。