can someone tell me why this is not working? I am trying to puss the ID of the video to GetVideoDuration().
<script type=
"text/x-kendo-template"
id=
"template"
>
<div class=
"duration"
>
@{string VID =
"VID"
;}
@VID.Replace(
"Vimeo_ID"
,
"${VID}"
)
@MultimediaController.GetVideoDuration(VID)
</div>
</script>
Second line display the correct VID on every record. But when GetVideoDuration() is getting executed the value passed is VID string not the actual number.
multimedia controller.
public
static
string
GetVideoDuration(
string
VID)
{
string
strDuration =
string
.Empty;
}