2
在我的MVC應用程序,爲什麼爲什麼ASP.NET MVC路徑顯示變量?
Return RedirectToAction("Edit", "Forms", New With {.member = "123"})
回報
http://localhost:13/Forms/Edit?member=123
的
http://localhost:13/Forms/Edit/123
insted的?
又爲何
<%=Html.ActionLink("MyLink", "Edit", "Forms", New With {.member = "123"}, Nothing)%>
做同樣的事情?
郵政MVC路由表,你會因爲這個方法在Global.asax中的得到更好的答案... – 2009-04-10 20:09:01