每當我嘗試使用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