I have made a custom Route which override GetRouteData. How can I know what type of request is being done? Everything passes the GetRoutData function (.cs开发者_如何学Pythons, .js, .axd, etc) and I would like to do something only if it is a System.Web.UI.Page.
But httpContext.Request.CurrentHandler is always null because the routing takes place just before the handler mapping...
any reason you can't limit your route to .aspx files? Do you not want to handle pages that superclass ui.page?
精彩评论