【发布时间】:2017-01-15 08:34:22
【问题描述】:
我正在使用下面的 jquery 函数打开一个剑道窗口。
我需要将__RequestVerificationToken 传递给MVC 控制器,因为我有ValidateAntiForgeryToken 属性。
但是,我无法通过它。您能否建议在打开 kendoWindow 时如何传递__RequestVerificationToken
function OpenTest() {
var url = '@Url.ActionWithArea("OpenTest", "Test", GlobalConst.AREA_Test)';
url += "?test=" +$("#test").val() + "&test1=" +$("#test1").val();
windowElement = $('<div id = "abc" />').kendoWindow({
title: 'test',
content: url,
modal: true,
resizable: false,
draggable: false,
width: 900,
height: 400,
close: function () {
windowElement.destroy();
}).data("kendoWindow").center().open();
return false;
}
}
【问题讨论】:
标签: asp.net-mvc kendo-ui kendo-ui-mvc kendo-window