Hello,
I'm trying to create a listview template with the following syntax:
<script type="text/x-kendo-tmpl" id="template">
<div class="item">
<img src="@Url.Content("~/Content/scans/")#:thumbLocation#" alt="#:description# image" />
<a href="@Url.Action("Index", "Controller", new { id= #: itemId# })">
<h3>#:description#</h3>
<p></p>
</div>
</script>
I keep getting the error:
Preprocessor directives must appear as the first non-whitespace character on a line.
How do I pass the parameter to the url action??
Your help would be much appreciated.
I'm trying to create a listview template with the following syntax:
<script type="text/x-kendo-tmpl" id="template">
<div class="item">
<img src="@Url.Content("~/Content/scans/")#:thumbLocation#" alt="#:description# image" />
<a href="@Url.Action("Index", "Controller", new { id= #: itemId# })">
<h3>#:description#</h3>
<p></p>
</div>
</script>
I keep getting the error:
Preprocessor directives must appear as the first non-whitespace character on a line.
How do I pass the parameter to the url action??
Your help would be much appreciated.