其完整的URL:如何從URL中讀取值? asp.net mvc的
http://localhost:64075/WPMManagement/Image/id=09251a7f-c362-4ed9-98e2-c9d555aaaf4f
它我的asp.net mvc的觀點:
<img height="660px"
width="430px"
src="<%= Url.Action("WebPageImage", "WPMManagement", new { id = id }) %>"
alt="bild mit webseiten version" />
我如何從URL中讀取ID這上面,然後將其插入,而不是id = "id"
- >id = "09251a7f-c362-4ed9-98e2-c9d555aaaf4f
「??
+1:很好,不知道這樣:o) – 2011-03-25 09:26:58