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

python - Why doesn't list have safe "get" method like dictionary? -

razor - Is this a bug in WebMatrix PageData? -

sql server - Stored procedure -