ASPX ASP MVC4 的 kendoUI 中显示了无效的表达式术语 ')'
代码:
<%: Html.Kendo().Grid(gridobj)
.Name("Grid")
.Columns(columns =>
{
columns.Bound(p => p.TMovie_id).Groupable(false).Title("ID");
columns.Bound(p => p.Name).Title("Name");
columns.Bound(p => p.Genre).Title("Genre");
columns.Command(command => command.Custom("Edit").Click("Editfunction"));
columns.Command(command => command.Custom("Delete").Click("Deletefunction"));
columns.Template(c => { %> <%= Html.ActionLink("Edit", "EditMovie","Movies") %> <% });
})
.Groupable()
.Pageable()
.Sortable()
.Scrollable()
.Filterable()
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("", ""))
)
%>
编译错误:
描述:在编译服务此请求所需的资源期间发生错误。请查看以下特定错误详细信息并适当修改您的源代码。
Compiler Error Message: CS1525: Invalid expression term ')'
Source Error:
Line 118: columns.Command(command => command.Custom("Edit").Click("Editfunction"));
Line 119: columns.Command(command => command.Custom("Delete").Click("Deletefunction"));
Line 120: columns.Template(c => { %> <%= Html.ActionLink("Edit", "EditMovie","Movies") %> <% });
Line 121:
Line 122: })