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.