這裏是我的代碼添加URL片段與MVC ActionLink的
這
<%= Html.ActionLink(Model[x].Title, "Index", "q", new { slug = Model[x].TitleSlug, id = Model[x].PostID }, null)%>
產生這個網址
http://localhost:61158/q/is_there_another_indiana_jones_movie_in_the_works/4
一部分,但我想製作一個URL片段,像這樣:
http://localhost:61158/q/is_there_another_indiana_jones_movie_in_the_works/4#1
有沒有辦法使用HTML.ActionLink函數來做到這一點?
如果有人知道一個更好的方式來解釋這種隨意編輯這個問題 – Luke101 2010-01-03 20:49:49