开发者

Asp.net MVC: Map path to view?

开发者 https://www.devze.com 2022-12-21 23:26 出处:网络
I am posting a form to url /Admin/EditInPl开发者_如何学JAVAace from page /About In EditInPlace\'s conroller code i can find the Url-Referrer i.e. from which page request is coming. But how can i map t

I am posting a form to url /Admin/EditInPl开发者_如何学JAVAace from page /About

In EditInPlace's conroller code i can find the Url-Referrer i.e. from which page request is coming. But how can i map the Url-Referrer to its View page??

In short how can i found that a page /xyz is mapping to which View.aspx file programmatically?


Needing to know what View the user was previously looking at smells like a design problem. As a workaround, consider passing a query string parameter to the Admin controller's EditInPlace method that describes which UI the user just saw.

/Admin/EditInPlace?channel=basic
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号