Ok I see what you're tryign to do. Well, if you want different URLs for each language/culture then you need to do this at the routing level. But if all you want is to know which language the user wants and then render different makrup, then you could implement
a HttpModule to set the culture. In other words, the HttpModule approach doesn't need to have different URLs for each culture -- you can determine the culture either form a HTTP header (Accept-Language) or if the user is logged in then maybe some setting in
the database.
BrockAllen
All-Star
28084 Points
4997 Posts
MVP
Re: Detecting which Controller+Action has been requested to the server
Mar 21, 2012 05:12 PM|LINK
Ok I see what you're tryign to do. Well, if you want different URLs for each language/culture then you need to do this at the routing level. But if all you want is to know which language the user wants and then render different makrup, then you could implement a HttpModule to set the culture. In other words, the HttpModule approach doesn't need to have different URLs for each culture -- you can determine the culture either form a HTTP header (Accept-Language) or if the user is logged in then maybe some setting in the database.
DevelopMentor | http://www.develop.com
thinktecture | http://www.thinktecture.com/