How to write a jQuery code inside of (ASP.NET/MVC/C#/Razor/Kendo)
vs'12 Internet Application MVC asp.net C#.
First I am sorry for i do not know what < scipt > language is used in the
Default tag inside razor view.
I know that i would like to write jquery load method inside ...
SampleCode
DropDownList
@(Html.Kendo().DropDownList()
.Name("OptionsDrop")
.BindTo(new string[] { "str1", "str2", "str3"})
.Events(e => e.Change("change"))
)
<script>
function change() {
var val = $("#OptionsDrop").val();
switch(val)
{
case "string":
$("#LoadingPartialDataDiv").load('~/Views/ImageView/_' +
val + '.cshtml');
break;
ERROR
GET localhost:59464/~/Views/ImageView/_Prospect.cshtml 404 (Not Found)
No comments:
Post a Comment