Kendo ui Kendowwindow\uuu请求验证Ken

Kendo ui Kendowwindow\uuu请求验证Ken,kendo-ui,telerik,kendo-asp.net-mvc,kendo-ui-mvc,kendo-window,Kendo Ui,Telerik,Kendo Asp.net Mvc,Kendo Ui Mvc,Kendo Window,我正在使用下面的jquery函数打开剑道窗口 我需要将\uu RequestVerificationToken传递给MVC控制器,因为我具有ValidateAntiForgeryToken属性 但是,我不能通过考试。在打开kendoWindow function OpenTest() { var url = '@Url.ActionWithArea("OpenTest", "Test", GlobalConst.AREA_Test)'; url +

我正在使用下面的jquery函数打开剑道窗口

我需要将
\uu RequestVerificationToken
传递给MVC控制器,因为我具有
ValidateAntiForgeryToken
属性

但是,我不能通过考试。在打开
kendoWindow

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;
}
函数OpenTest(){
var url='@url.ActionWithArea(“OpenTest”,“Test”,GlobalConst.AREA_Test)”;
url+=“?test=“++$(“#test”).val()+
“&test1=“+$(“#test1”).val();
windowElement=$('').kendoWindow({
标题:"测试",,
内容:网址,
莫代尔:是的,
可调整大小:false,
可拖动:错误,
宽度:900,
身高:400,
关闭:函数(){windowElement.destroy();}).data(“kendoWindow”).center().open();
返回false;
}

您可能需要考虑在应用程序中更全局的范围内包含此令牌,这样就不必在每次调用的基础上对其进行干预

上有一个例子,大约在中途。路线的数据签名应该如下所示:

transport: {
    read: {
        url: url,
        type: "POST",
        data: {__RequestVerificationToken: $("input[name=__RequestVerificationToken]").val()
        }
    }
或者在你的情况下,类似这样的-->

'@Url.ActionWithArea(“OpenTest”,“Test”,new{{uuu RequestVerificationToken=}),GlobalConst.AREA_Test”);
'@Url.ActionWithArea("OpenTest", "Test", new { __RequestVerificationToken=<value> }),GlobalConst.AREA_Test)';