asp.net - Can I modify an MVC route outside of Global.asax? -


is possible modify the routes (and routetable) outside of global.asax file, maybe in controller? advisable?

my reason asking has iis 6 , integrated mode not allowing request context calls. i'm implementing internationalization site , keeping track of culture in url. culture read .config file , loaded route default. file read ends throwing error (another few steps stack). based off method described here.

you can access routing table pretty anywhere system.web.routing.routetable.routes, have tested controller , worked fine.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -