我的代码如下所示:
@(Html.Kendo().DropDownList()
.Name("MyDropDownList")
.BindTo(new string[] { "StringOne", "StringTwo", "StringThree"})
.Events(e => e.Change("MyDropDownListOnchange")))
在脚本中:
function MyDropDownListOnchange() {
var val = $("#MyDropDownList").val();
$("#LoadingDiv").load("Views/StringView/_StringOne.cshtml");
我尝试了几种变体:
- “~/视图/......
- “../视图/......
- “观点/....
- “图像视图/....
错误:
//localhost:43222/Views/StringView/_StringOne.cshtml 404 (Not Found)