My code looks like so:
@(Html.Kendo().DropDownList()
.Name("MyDropDownList")
.BindTo(new string[] { "StringOne", "StringTwo", "StringThree"})
.Events(e => e.Change("MyDropDownListOnchange")))
In the scripts:
function MyDropDownListOnchange() {
var val = $("#MyDropDownList").val();
$("#LoadingDiv").load("Views/StringView/_StringOne.cshtml");
I have tried several variations:
- "~/Views/......
- "../Views/.....
- "Views/....
- "ImageView/....
Error:
//localhost:43222/Views/StringView/_StringOne.cshtml 404 (Not Found)
//localhost:43222/???//localhost:43222/Views/StringView/_StringOne.cshtml<a href="~/Views/StringView/_StringOne.cshtml">~/Views/StringView/_StringOne.cshtml</a>but i have tried using /~/View