Asp.net mvc 如何仅使用HTML在异步对象中指定控制器?

Asp.net mvc 如何仅使用HTML在异步对象中指定控制器?,asp.net-mvc,html,asp.net-mvc-4,kendo-ui,Asp.net Mvc,Html,Asp.net Mvc 4,Kendo Ui,我开始使用剑道UI,并尝试在异步模式下使用上传程序,但我没有看到任何关于此异步对象中哪些字段可用的文档 <div style="width: 350px"> <input name="files[]" id="files" type="file" /> </div> <script type="text/javascript"> $(document).ready(function () {

我开始使用剑道UI,并尝试在异步模式下使用上传程序,但我没有看到任何关于此异步对象中哪些字段可用的文档

    <div style="width: 350px">
        <input name="files[]" id="files" type="file" />
    </div>

    <script type="text/javascript">
        $(document).ready(function () {
            $("#files").kendoUpload({
                async: {
                    saveUrl: "save",
                    removeUrl: "remove",
                    autoUpload: true
                    //controllerName? Where is the documentation for this?
                }
            });
        });
    </script>

$(文档).ready(函数(){
$(“#文件”).kendoUpload({
异步:{
saveUrl:“保存”,
removeUrl:“删除”,
自动上载:true
//控制器名称?这方面的文档在哪里?
}
});
});

如果要使用MVC扩展,razor语法有一个字段来指定控制器名称。如果我没有使用MVC扩展/razor语法,我应该把它放在哪里

没有这样的选项来指定操作或控制器。您只能指定saveUrl选项的完整URL。作为解决方案,您可以使用MVC提供的帮助程序:

async: {
                saveUrl: "save",
                removeUrl: '@Url.Action("ActionName","Controller")',
                autoUpload: true
            }