在部分视图中设置数据过滤器
答
$(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
}
});
});
});
如果你需要更多的帮助说点什么。
为此使用JQuery.Ajax。 –
你可能会详细说明吗? –
这是模型中充当DataFilter的方法。我需要在每个部分中设置TableName –