使用jquery调用服务器函数并返回结果
我已经创建了一个treeview,它具有向上/向下移动节点的功能。在jquery中调用向上/向下移动的函数。jQuery代码是使用jquery调用服务器函数并返回结果,jquery,asp.net-mvc-2,treeview,Jquery,Asp.net Mvc 2,Treeview,我已经创建了一个treeview,它具有向上/向下移动节点的功能。在jquery中调用向上/向下移动的函数。jQuery代码是 $("#move_up").live("click", function(e) { var rqdInstnId = GetRequiredId(); $.post("/Instruction/MoveInstruction", { docId: DocId, instnId: rqdInstnId, action: "
$("#move_up").live("click", function(e) {
var rqdInstnId = GetRequiredId();
$.post("/Instruction/MoveInstruction", { docId: DocId, instnId: rqdInstnId, action: "MoveUp" });
});
我需要在执行函数后反映树视图中的更改。现在treeview被加载到一个div中。这可以通过使用iframe实现吗?请向我澄清这一点。使用类似于:
$(this).insertBefore($(this).prev());