asp.net mvc cshtml (VIEWS)中怎么提供URL参数: 其实,没有必要,只要在view中这样获取就可以: <%=Html.ViewContext.RouteData.Values["id"]%> 就算没有id的参数也不会报错。