Asp.net 带有弹出窗口的渲染部分-MVC3
我需要在我的视图上调用RenderPartial,并且部分视图必须作为弹出窗口打开Asp.net 带有弹出窗口的渲染部分-MVC3,asp.net,asp.net-mvc-3,Asp.net,Asp.net Mvc 3,我需要在我的视图上调用RenderPartial,并且部分视图必须作为弹出窗口打开 有什么建议吗?我已经使用JavaScript/jQuery完成了这项工作 方法设置对话框(在页面加载时调用此方法) 要在打开对话框时调用的方法: function addFee() { $.ajax({ url: [Insert your URL where retrieving solution], type: 'POST', data: { "myId"
有什么建议吗?我已经使用JavaScript/jQuery完成了这项工作 方法设置对话框(在页面加载时调用此方法) 要在打开对话框时调用的方法:
function addFee() {
$.ajax({
url: [Insert your URL where retrieving solution],
type: 'POST',
data: { "myId": [Variable with your ID] } //Or any other parameters you need to pass to the controller
}).done(function (data) {
jQuery("#divCreateFee").html(data);
jQuery("#dlgCreateFee").dialog("open");
});
}
您可以有一个空的布局,并使用一个常规的弹出窗口。或者你可以使用一些漂亮的jquery对话框,并使用ajax加载它。谢谢你的回答,我一定有兴趣知道如何通过MVC视图调用它。
function addFee() {
$.ajax({
url: [Insert your URL where retrieving solution],
type: 'POST',
data: { "myId": [Variable with your ID] } //Or any other parameters you need to pass to the controller
}).done(function (data) {
jQuery("#divCreateFee").html(data);
jQuery("#dlgCreateFee").dialog("open");
});
}