Page.GetRoutUrl in a static method
问题 Some background on what I'm doing I usually like to have my pages return the url needed to access it. So i will normally have a method like so public partial class ProductDetails : Page { public static string GetUrl(Guid productId) { return "fully qualified url"; } } on my other pages/controls that need to access this page i'll simply set the link as hl.NavigateUrl = ProductDetails.GetUrl(id); I'm toying around with the new UrlRouting stuff in 4.0 and ran into something I'm not sure will work