在我的行动中,我听到了URL(而不是目前的路线),我想知道,我的路线如何将URL打成Area
,Controller
和Action
。
例如:
"http://website.com/Selling/Products/UpdateProduct/2"
area == "Selling"
controller == "Products"
action == "UpdateProduct"
I saw this answer from 2-12-2009 with a way how to do it, but it s verbose:
it creates HttpRequst
, HttpResponse
, HttpContext
and HttpContextWrapper
! for a simple operation, that doesn t really need HTTP context environment.
今天,有更好的办法使用<代码>。 Asp.Net-Mvc3?