简体   繁体   中英

ASP.NET 4 WebForms Routing - Get Physical Page handling the request

Let's assume you have the following PageRoute

routes.MapPageRoute("support", "support", "~/Support.aspx");

Is is possible by the following url: http://www.domain.com/support to understand which is the physical page handling the request? ( support.aspx )

Request.Url.LocalPath.ToString()在请求此路由时返回“/Support.aspx”

Not sure what you mean by 'understand which is the physical page'. However, you can get the the page URL by:

Page.GetRouteUrl("support", null);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM