获取在Global.asax中定义的所有航线 [英] Get all routes defined in global.asax
本文介绍了获取在Global.asax中定义的所有航线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在我的asp.net C#应用程序使用webformrouting。
I am using webformrouting in my asp.net c# application.
在我的Global.asax文件中定义了一个情侣路线。
In my global.asax file i define a couple of routes.
我的问题是,我怎么可以从后面的代码中定义的所有路由的列表(在页面上)?
My question is, how can i get a list of all routes defined from code behind (on a page)?
推荐答案
您可以访问路线
在 RouteTable
System.Web.Routing.RouteTable.Routes;
这篇关于获取在Global.asax中定义的所有航线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文