每当我尝试使用ActionLink时,都会收到上述错误消息?我刚开始玩的MVC周围并没有真正理解与代码(下)那是什么问题:ActionLink CS1026:)预计
<%= Html.ActionLink("Lists", "Index", "Lists"); %>
这只是似乎是一个解析的问题,但是当我运行它只是发生页。应用程序的构建非常好,所以我真的不明白,因为错误是编译错误?如果我走线25出来它会发生,而不是对下一行...
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1026:) expected
Source Error:
Line 23: </div>
Line 24:
Line 25: <%= Html.ActionLink("Lists", "Index", "Lists"); %>
Line 26: <a href="<%= Url.Action("/", "Lists"); %>">Click here to view your lists</a>
Line 27:
Source File: d:\Coding\Playground\HowDidYouKnowMVCSoln\HowDidYouKnowMVC\Views\Home\Index.aspx Line: 25
<%= ... %>被评估,<% ... %>被执行是我如何记住它。 – Will 2008-12-13 19:44:46