首先,是否可以@Html.ActionLink
与敲除绑定一起使用?
如果是的话,我会怎么写?
这就是我需要的:
@Html.ActionLink( [I want display QuestionID() - a ko view model property] , "Question [controller action name]", "Project [controller name]", new { project = [here should be ProjectID() - a ko view model property] id = [here should be QuestionID() - a ko view model property] }, new Dictionary<string, object> { { "data-bind", "title: 'View detailed question page'" } }))
简单来说,它在渲染时应该如下所示:
提前致谢。